diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-07-09 21:10:51 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-07-10 04:11:43 +0000 |
commit | 325b033ca4f307846ac2cc8d42899c2e51cbd27b (patch) | |
tree | daa1ae3b51d8d89f2504f0698820910b1149fe08 | |
parent | c29c043cdcfe6b381e9ef57c796c94783f3b32ef (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>
-rw-r--r-- | ui/qt/print_dialog.cpp | 5 |
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(); |