summaryrefslogtreecommitdiffstats
path: root/printer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'printer.cpp')
-rw-r--r--printer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/printer.cpp b/printer.cpp
index 79f04e4a0..44f0739bc 100644
--- a/printer.cpp
+++ b/printer.cpp
@@ -56,7 +56,7 @@ void Printer::render()
divesPerPage = 2;
break;
}
- int Pages = ceil(getTotalWork() / (float)divesPerPage);
+ int Pages = ceil(getTotalWork(printOptions) / (float)divesPerPage);
// get all refereces to diveprofile class in the Html template
QWebElementCollection collection = webView->page()->mainFrame()->findAllElements(".diveprofile");