diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-06-21 06:13:22 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-07-05 20:58:24 +0300 |
commit | 1faa198020de343004a7f1db85a83e6bc0ef8b34 (patch) | |
tree | aa588f64eb16c979f98adfea156f90a90b23e8d8 /printer.cpp | |
parent | bc0b443afd73e0bc7c18b293d051aa01bf82d99f (diff) | |
download | subsurface-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.cpp | 2 |
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"); |