From 45e7f3f99e04aa8761e202b778f103401f79f812 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 19 Feb 1999 14:23:23 +0000 Subject: [PATCH] Fixed bug in write_static() method - when getting the menu_name() and index we need to use the current menu item (q) and not the current menu. git-svn-id: file:///fltk/svn/fltk/trunk@301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Fl_Menu_Type.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fluid/Fl_Menu_Type.cxx b/fluid/Fl_Menu_Type.cxx index 604dbb0b6..3c9c66710 100644 --- a/fluid/Fl_Menu_Type.cxx +++ b/fluid/Fl_Menu_Type.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Menu_Type.cxx,v 1.13 1999/02/16 14:01:10 mike Exp $" +// "$Id: Fl_Menu_Type.cxx,v 1.14 1999/02/19 14:23:23 mike Exp $" // // Menu item code for the Fast Light Tool Kit (FLTK). // @@ -221,7 +221,7 @@ void Fl_Menu_Item_Type::write_static() { for (Fl_Type* q = t->next; q && q->is_menu_item(); q = q->next) { const char *c = array_name((Fl_Menu_Item_Type *)q); if (c) { - int i; const char* n = menu_name(i); + int i; const char* n = ((Fl_Menu_Item_Type *)q)->menu_name(i); write_c("Fl_Menu_Item* %s::%s = %s::%s + %d;\n", k, c, k, n, i); } } @@ -528,5 +528,5 @@ void shortcut_in_cb(Shortcut_Button* i, void* v) { } // -// End of "$Id: Fl_Menu_Type.cxx,v 1.13 1999/02/16 14:01:10 mike Exp $". +// End of "$Id: Fl_Menu_Type.cxx,v 1.14 1999/02/19 14:23:23 mike Exp $". //