summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-01-11 06:36:14 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-01-11 06:36:14 +0000
commit1f42c23012ec38eae34288de50f7c8b77bae2d76 (patch)
tree3f260733ddae7a6de14e10ec3210872f5f477ca8 /file.c
parent983f496f6944f27301f08017a89264077b9fcb7d (diff)
downloadwireshark-1f42c23012ec38eae34288de50f7c8b77bae2d76.tar.gz
Fix for bug #1196: packet detail & packet bytes windows not updated under
certain circumstances when applying a display filter that does not include the currently selected packet. svn path=/trunk/; revision=20389
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/file.c b/file.c
index 987140248f..0f3f23e219 100644
--- a/file.c
+++ b/file.c
@@ -1603,6 +1603,10 @@ rescan_packets(capture_file *cf, const char *action, const char *action_item,
have to select the first displayed frame after the selected
frame. */
selected_row = following_row;
+ } else {
+ /* Frames before and after the selected frame passed the filter, so
+ we'll select the previous frame */
+ selected_row = preceding_row;
}
}
}