aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/printer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/printer.cpp')
-rw-r--r--desktop-widgets/printer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/printer.cpp b/desktop-widgets/printer.cpp
index 4b7123adb..b617fde11 100644
--- a/desktop-widgets/printer.cpp
+++ b/desktop-widgets/printer.cpp
@@ -100,9 +100,9 @@ void Printer::flowRender()
emit(progessUpdated(lrint((end * 80.0 / fullPageResolution) + done)));
// add new pages only in print mode, while previewing we don't add new pages
- if (printMode == Printer::PRINT)
+ if (printMode == Printer::PRINT) {
static_cast<QPrinter*>(paintDevice)->newPage();
- else {
+ } else {
painter.end();
return;
}