mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
bc0b443afd
commit
1faa198020
3 changed files with 16 additions and 8 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue