diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-07-09 23:04:56 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-07-09 23:04:56 +0000 |
| commit | 83968f19a9938abeda155a06f33da18480940b91 (patch) | |
| tree | b6cea7ab2b8d006ffd2a83eff0d8704464e7608d | |
| parent | f72a3ce60a16296333f1f9d5a16b7f1438ed37d3 (diff) | |
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
| -rw-r--r-- | CHANGES | 3 | ||||
| -rw-r--r-- | src/Fl_Menu_add.cxx | 6 |
2 files changed, 6 insertions, 3 deletions
@@ -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 $". // |
