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
This commit is contained in:
parent
f72a3ce60a
commit
83968f19a9
3
CHANGES
3
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.
|
||||
|
@ -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).
|
||||
//
|
||||
@ -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++;
|
||||
}
|
||||
@ -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…
Reference in New Issue
Block a user