summaryrefslogtreecommitdiffstats
path: root/printer.cpp
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-06-21 06:13:22 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-07-05 20:58:24 +0300
commit1faa198020de343004a7f1db85a83e6bc0ef8b34 (patch)
treeaa588f64eb16c979f98adfea156f90a90b23e8d8 /printer.cpp
parentbc0b443afd73e0bc7c18b293d051aa01bf82d99f (diff)
downloadsubsurface-1faa198020de343004a7f1db85a83e6bc0ef8b34.tar.gz
Printing: print all dives if 'print selected' is unchecked
User can choose either to print all dives or print selected dives only. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
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");