]> git.eshelyaron.com Git - emacs.git/commitdiff
(other_menu_bar_item_p): Return 0 if no menu bar.
authorRichard M. Stallman <rms@gnu.org>
Thu, 19 May 1994 15:49:52 +0000 (15:49 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 19 May 1994 15:49:52 +0000 (15:49 +0000)
src/xmenu.c

index a30c4ac29dfd52df3dfbd911267fb18770a27068..056ae04dd41c93966df8af1a6d45ada9d15e6a3d 100644 (file)
@@ -1269,6 +1269,7 @@ other_menu_bar_item_p (f, x, y)
      int x, y;
 {
   return (y >= 0
+         && f->display.x->menubar_widget != 0
          && y < f->display.x->menubar_widget->core.height
          && x >= 0
          && x < last_menu_bar_item_end