aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-02-08 13:47:11 (GMT)
committerfluxgen <fluxgen>2002-02-08 13:47:11 (GMT)
commitaffd3c2afb1b304e470c090375d12ab56ac466da (patch)
tree744f7762db279c1d7963904457ea614a4d3fab9a
parent83352ec53a989bf5d4db05ef334cd42d4338756b (diff)
downloadfluxbox-affd3c2afb1b304e470c090375d12ab56ac466da.zip
fluxbox-affd3c2afb1b304e470c090375d12ab56ac466da.tar.bz2
fixed erase bug
-rw-r--r--src/Basemenu.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Basemenu.cc b/src/Basemenu.cc
index 4abc055..8ef636a 100644
--- a/src/Basemenu.cc
+++ b/src/Basemenu.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Basemenu.cc,v 1.9 2002/02/08 13:20:23 fluxgen Exp $ 25// $Id: Basemenu.cc,v 1.10 2002/02/08 13:47:11 fluxgen Exp $
26 26
27// stupid macros needed to access some functions in version 2 of the GNU C 27// stupid macros needed to access some functions in version 2 of the GNU C
28// library 28// library
@@ -238,7 +238,7 @@ int Basemenu::insert(const char **ulabel, int pos, int function) {
238int Basemenu::remove(int index) { 238int Basemenu::remove(int index) {
239 if (index < 0 || index > menuitems.size()) return -1; 239 if (index < 0 || index > menuitems.size()) return -1;
240 240
241 Menuitems::iterator it = menuitems.erase(menuitems.begin() + index); 241 Menuitems::iterator it = menuitems.begin() + index;
242 BasemenuItem *item = (*it); 242 BasemenuItem *item = (*it);
243 243
244 if (item) { 244 if (item) {