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:
parent
f4c87595c9
commit
b444bd6eb2
5
file.c
5
file.c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue