aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-07-09 21:10:51 -0700
committerGuy Harris <guy@alum.mit.edu>2018-07-10 04:11:43 +0000
commit325b033ca4f307846ac2cc8d42899c2e51cbd27b (patch)
treedaa1ae3b51d8d89f2504f0698820910b1149fe08 /ui
parentc29c043cdcfe6b381e9ef57c796c94783f3b32ef (diff)
Expand another comment to explain why we're ignoring empty lines.
Change-Id: Iafaeaffa1004ae741bdb4c6be91528f65aa06cfd Reviewed-on: https://code.wireshark.org/review/28668 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/print_dialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/qt/print_dialog.cpp b/ui/qt/print_dialog.cpp
index 016a5660b2..32bf9e8d27 100644
--- a/ui/qt/print_dialog.cpp
+++ b/ui/qt/print_dialog.cpp
@@ -185,7 +185,10 @@ gboolean PrintDialog::printLine(int indent, const char *line)
// if we're past the first page, stop the printing process.
return FALSE;
}
- if (*line == '\0') { // Separator
+ if (*line == '\0') {
+ // This is an empty line, so it's a separator; no need to
+ // waste space printing it at the top of a page, as the
+ // page break suffices as a separator.
return TRUE;
}
printHeader();