From 1040f0d4e57ca8ec13f9eb8e0b2214c89b90aaaf Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Wed, 10 Jun 2015 13:39:15 +0200 Subject: Printing: fix rendering bug for odd number of dives Odd number of dives needs extra space from the buttom, so that when we scroll to the last page extra whitespace is shown under the last dive frame, this is fixed by adding a default footer to the base template. Signed-off-by: Gehad elrobey Signed-off-by: Lubomir I. Ivanov --- templatelayout.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'templatelayout.cpp') diff --git a/templatelayout.cpp b/templatelayout.cpp index a5d4b2329..6083d7b91 100644 --- a/templatelayout.cpp +++ b/templatelayout.cpp @@ -3,16 +3,7 @@ #include "templatelayout.h" #include "helpers.h" -TemplateLayout::TemplateLayout() -{ -} - -TemplateLayout::~TemplateLayout() -{ - delete m_engine; -} - -int TemplateLayout::getTotalWork() +int getTotalWork() { int dives = 0, i; struct dive *dive; @@ -25,6 +16,15 @@ int TemplateLayout::getTotalWork() return dives; } +TemplateLayout::TemplateLayout() +{ +} + +TemplateLayout::~TemplateLayout() +{ + delete m_engine; +} + QString TemplateLayout::generate() { int progress = 0; -- cgit v1.2.3-70-g09d2