mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
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:
parent
ab1aef2187
commit
e47acda4ea
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user