/* Go to frame specified by currently selected protocol tree item.  */
gboolean cf_goto_framenum(capture_file *cf)
/* Go to frame specified by currently selected protocol tree item.  */
gboolean cf_goto_framenum(capture_file *cf)
{
  header_field_info *hfinfo;
  guint32            framenum;
  if (cf->finfo_selected) {
    hfinfo = cf->finfo_selected->hfinfo;
    g_assert(hfinfo);
    if (hfinfo->type == FT_FRAMENUM) {
      framenum = fvalue_get_uinteger(&cf->finfo_selected->value);
      if (framenum != 0)
        return cf_goto_frame(cf, framenum);
      }
  }
  return FALSE;
}