From 4da7a063008f187a66ab4d3de72a2d7cbf1d276a Mon Sep 17 00:00:00 2001 From: "Carl E. Thompson" Date: Mon, 12 Jul 1999 12:22:45 +0000 Subject: [PATCH] Removed patch - didn't fix problem. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@624 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Menu_add.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Fl_Menu_add.cxx b/src/Fl_Menu_add.cxx index 8b2a8b75e..fe1647f78 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.3 1999/07/12 11:59:03 mike Exp $" +// "$Id: Fl_Menu_add.cxx,v 1.9.2.4 1999/07/12 12:22:45 carl Exp $" // // Menu utilities for the Fast Light Tool Kit (FLTK). // @@ -35,6 +35,7 @@ #include #include +#include #include // If the array is this, we will double-reallocate as necessary: @@ -57,7 +58,7 @@ static Fl_Menu_Item* insert( const char *text, int flags ) { - if (array == local_array && size >= (local_array_alloc - 1)) { + if (array == local_array && size >= local_array_alloc) { local_array_alloc = 2*size; Fl_Menu_Item* newarray = new Fl_Menu_Item[local_array_alloc]; memmove(newarray, array, size*sizeof(Fl_Menu_Item)); @@ -229,5 +230,5 @@ void Fl_Menu_::remove(int i) { } // -// End of "$Id: Fl_Menu_add.cxx,v 1.9.2.3 1999/07/12 11:59:03 mike Exp $". +// End of "$Id: Fl_Menu_add.cxx,v 1.9.2.4 1999/07/12 12:22:45 carl Exp $". //