If we explicitly started a new page, print a column header line if necessary.

Change-Id: I9be7b41ce5ec5ece502035d0ca7c0fbb3eb3b37d
Ping-Bug: 14960
Reviewed-on: https://code.wireshark.org/review/28672
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2018-07-09 21:45:33 -07:00
parent 325b033ca4
commit 3e2d3837dd
1 changed files with 7 additions and 0 deletions

7
file.c
View File

@ -2314,6 +2314,13 @@ print_packet(capture_file *cf, frame_data *fdata, wtap_rec *rec,
if (args->print_formfeed) {
if (!new_page(args->print_args->stream))
goto fail;
/*
* Print another header line if we print a packet summary on the
* new page.
*/
if (args->print_args->print_col_headings)
args->print_header_line = TRUE;
} else {
if (args->print_separator) {
if (!print_line(args->print_args->stream, 0, ""))