summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES3
-rw-r--r--src/Fl_Menu_add.cxx6
2 files changed, 6 insertions, 3 deletions
diff --git a/CHANGES b/CHANGES
index 476d6d888..90ae581c5 100644
--- a/CHANGES
+++ b/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.
diff --git a/src/Fl_Menu_add.cxx b/src/Fl_Menu_add.cxx
index b7c4bd0c3..2e506ccda 100644
--- a/src/Fl_Menu_add.cxx
+++ b/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).
//
@@ -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 $".
//