The frame number passed to "goto_frame()" wasn't necessarily explicitly

specified by the user, so if the frame with that frame number isn't
being displayed, just refer to it as "That frame", not "The frame with
that frame number".  (That's even OK if they *did* specify it.)

(If there's no such frame, that "shouldn't happen" in cases where it was
implicitly specified, e.g. by getting it from a list of fragments, or a
"{request,reply} is in frame XXX" field, or clicking on a point in a TCP
graph.)

svn path=/trunk/; revision=7258
This commit is contained in:
Guy Harris 2003-03-02 22:37:03 +00:00
parent 300aa657cc
commit 55cb7ac8b7
1 changed files with 4 additions and 4 deletions

8
file.c
View File

@ -1,7 +1,7 @@
/* file.c
* File I/O routines
*
* $Id: file.c,v 1.297 2003/03/02 22:07:21 guy Exp $
* $Id: file.c,v 1.298 2003/03/02 22:37:03 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -1564,16 +1564,16 @@ goto_frame(capture_file *cf, guint fnumber)
;
if (fdata == NULL) {
/* we didn't find that frame */
/* we didn't find a frame with that frame number */
simple_dialog(ESD_TYPE_CRIT, NULL,
"There is no frame with that frame number.");
return FALSE; /* we failed to go to that frame */
}
if (!fdata->flags.passed_dfilter) {
/* the frame with that number isn't displayed */
/* that frame currently isn't displayed */
/* XXX - add it to the set of displayed frames? */
simple_dialog(ESD_TYPE_CRIT, NULL,
"The frame with that frame number is not currently being displayed.");
"That frame is not currently being displayed.");
return FALSE; /* we failed to go to that frame */
}