fix the more... problem

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5445 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-10-18 15:01:25 +00:00
parent ab1aef2187
commit e47acda4ea
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-10-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* Menubar_pimpl.C (create_submenu): do not create a "More..."
submenu just for one entry
2002-10-15 Angus Leeming <leeming@lyx.org>
* XWorkArea.C (work_area_handler): Pass the mouse button correctly to

View File

@ -250,7 +250,9 @@ int Menubar::Pimpl::create_submenu(Window win, XFormsView * view,
string & extra_label = *it;
++count;
if (count > max_number_of_items) {
// add a More... submenu if the menu is too long (but
// not just for one extra entry!)
if (count > max_number_of_items && (i+1) != end) {
int tmpmenuid = get_new_submenu(smn, win);
lyxerr[Debug::GUI] << "Too many items, creating "
<< "new menu " << tmpmenuid << endl;