Increase the displayed_count before we add the packet to the packet list,

because we update the the packets bar when adding the packet.

This fixes bug 4896.

svn path=/trunk/; revision=33331
This commit is contained in:
Stig Bjørlykke 2010-06-26 21:03:01 +00:00
parent f4c87595c9
commit b444bd6eb2
1 changed files with 3 additions and 2 deletions

5
file.c
View File

@ -1168,6 +1168,9 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf,
} else
fdata->flags.passed_dfilter = 1;
if(fdata->flags.passed_dfilter || fdata->flags.ref_time)
cf->displayed_count++;
if (add_to_packet_list) {
/* We fill the needed columns from new_packet_list */
row = new_packet_list_append(cinfo, fdata, &edt.pi);
@ -1195,8 +1198,6 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf,
/* This is the last frame we've seen so far. */
cf->last_displayed = fdata;
cf->displayed_count++;
}
epan_dissect_cleanup(&edt);