Skip to content

Commit

Permalink
Fl_Menu_Item::add() didn't use myflags.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1474 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
michaelrsweet committed Jul 9, 2001
1 parent f72a3ce commit 83968f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES
@@ -1,5 +1,8 @@
CHANGES SINCE FLTK 1.0.11

- Fl_Menu_Item::add() didn't use the flags that were
passed in.

- Fixed a bug in Fl_Scrollbar - clicking in the "trough"
of the scrollbar would move the scroller in the wrong
direction.
Expand Down
6 changes: 3 additions & 3 deletions src/Fl_Menu_add.cxx
@@ -1,5 +1,5 @@
//
// "$Id: Fl_Menu_add.cxx,v 1.9.2.12 2001/05/19 21:30:23 spitzak Exp $"
// "$Id: Fl_Menu_add.cxx,v 1.9.2.13 2001/07/09 23:04:56 easysw Exp $"
//
// Menu utilities for the Fast Light Tool Kit (FLTK).
//
Expand Down Expand Up @@ -156,7 +156,7 @@ int Fl_Menu_Item::add(
int n = m-array;
array = insert(array, size, n, item, myflags|flags1);
size++;
if (flags & FL_SUBMENU) { // add submenu delimiter
if (myflags & FL_SUBMENU) { // add submenu delimiter
array = insert(array, size, n+1, 0, 0);
size++;
}
Expand Down Expand Up @@ -261,5 +261,5 @@ void Fl_Menu_::remove(int i) {
}

//
// End of "$Id: Fl_Menu_add.cxx,v 1.9.2.12 2001/05/19 21:30:23 spitzak Exp $".
// End of "$Id: Fl_Menu_add.cxx,v 1.9.2.13 2001/07/09 23:04:56 easysw Exp $".
//

0 comments on commit 83968f1

Please sign in to comment.