summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1999-02-19 14:23:23 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1999-02-19 14:23:23 +0000
commit45e7f3f99e04aa8761e202b778f103401f79f812 (patch)
treef2eb3448d22d55b59a8cc2bc607b5d0dc3656efc
parent1bf7ee1dac851596af7cac56c6d149d07c7fabe0 (diff)
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
-rw-r--r--fluid/Fl_Menu_Type.cxx6
1 files 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 $".
//