From 2feedf46fa86c19095a9f302d1d7a44d3416384d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 15 May 2019 07:42:14 -0700 Subject: Cleanup: small coding style fixes And addressing a cut and paste error in a comment. Signed-off-by: Dirk Hohndel --- desktop-widgets/printer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop-widgets/printer.cpp') 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(paintDevice)->newPage(); - else { + } else { painter.end(); return; } -- cgit v1.2.3-70-g09d2