aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2010-06-26 21:03:01 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2010-06-26 21:03:01 +0000
commitb444bd6eb2c82314b4386e0f444779ad4640186a (patch)
treeb96c6a3c6bc688a6ff1229041ed27cab9f1f8a73 /file.c
parentf4c87595c922b1e6429126983e4ec0625b1c056c (diff)
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
Diffstat (limited to 'file.c')
-rw-r--r--file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/file.c b/file.c
index 779fcf8ed3..48d68d1c72 100644
--- a/file.c
+++ b/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);