Skip to content

Commit

Permalink
Menu item numbering bug fix from Bill.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/trunk@272 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
michaelrsweet committed Feb 16, 1999
1 parent 3204e09 commit b43ba93
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions fluid/Fl_Menu_Type.cxx
@@ -1,5 +1,5 @@
//
// "$Id: Fl_Menu_Type.cxx,v 1.11 1999/01/19 19:24:32 mike Exp $"
// "$Id: Fl_Menu_Type.cxx,v 1.12 1999/02/16 13:55:06 mike Exp $"
//
// Menu item code for the Fast Light Tool Kit (FLTK).
//
Expand Down Expand Up @@ -217,15 +217,13 @@ void Fl_Menu_Item_Type::write_static() {

if (k) {
// Write menu item variables...
int i = 0;
const char *c;

t = prev; while (t && t->is_menu_item()) t = t->prev;
for (Fl_Type* q = t->next; q && q->is_menu_item(); q = q->next, i ++) {
c = array_name((Fl_Menu_Item_Type *)q);
if (c)
write_c("Fl_Menu_Item *%s::%s = %s::%s + %d;\n", k, c, k, menu_name(level), i);
}
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);
write_c("Fl_Menu_Item* %s::%s = %s::%s + %d;\n", k, c, k, n, i);
}
}
}

Expand Down Expand Up @@ -529,5 +527,5 @@ void shortcut_in_cb(Shortcut_Button* i, void* v) {
}

//
// End of "$Id: Fl_Menu_Type.cxx,v 1.11 1999/01/19 19:24:32 mike Exp $".
// End of "$Id: Fl_Menu_Type.cxx,v 1.12 1999/02/16 13:55:06 mike Exp $".
//

0 comments on commit b43ba93

Please sign in to comment.