Browse Source

Fl_Menu_Item::add() didn't use myflags.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1474 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
branch-1.0
Michael R Sweet 24 years ago
parent
commit
83968f19a9
  1. 3
      CHANGES
  2. 6
      src/Fl_Menu_add.cxx

3
CHANGES

@ -1,5 +1,8 @@
CHANGES SINCE FLTK 1.0.11 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" - Fixed a bug in Fl_Scrollbar - clicking in the "trough"
of the scrollbar would move the scroller in the wrong of the scrollbar would move the scroller in the wrong
direction. direction.

6
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). // Menu utilities for the Fast Light Tool Kit (FLTK).
// //
@ -156,7 +156,7 @@ int Fl_Menu_Item::add(
int n = m-array; int n = m-array;
array = insert(array, size, n, item, myflags|flags1); array = insert(array, size, n, item, myflags|flags1);
size++; size++;
if (flags & FL_SUBMENU) { // add submenu delimiter if (myflags & FL_SUBMENU) { // add submenu delimiter
array = insert(array, size, n+1, 0, 0); array = insert(array, size, n+1, 0, 0);
size++; size++;
} }
@ -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 $".
// //

Loading…
Cancel
Save