summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {