aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/printer.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-05-15 07:42:14 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-05-15 07:42:14 -0700
commit2feedf46fa86c19095a9f302d1d7a44d3416384d (patch)
treec5555f630309bc6808acbf7b3957346e745dcb65 /desktop-widgets/printer.cpp
parent1bdf00b2b472078a0b24f1c269782d822cb96e02 (diff)
downloadsubsurface-2feedf46fa86c19095a9f302d1d7a44d3416384d.tar.gz
Cleanup: small coding style fixes
And addressing a cut and paste error in a comment. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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;
}