mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
src/MenuBackend.C (expandFormats): add default case to switch; handle
UpdateFormat like the others cases. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13969 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c4edb019f5
commit
a719e89ffe
@ -515,10 +515,12 @@ void expandFormats(MenuItem::Kind kind, Menu & tomenu, LyXView const * view)
|
||||
break;
|
||||
case MenuItem::ViewFormats:
|
||||
case MenuItem::ExportFormats:
|
||||
case MenuItem::UpdateFormats:
|
||||
if (!(*fit)->documentFormat())
|
||||
continue;
|
||||
break;
|
||||
case MenuItem::UpdateFormats:
|
||||
default:
|
||||
BOOST_ASSERT(false);
|
||||
break;
|
||||
}
|
||||
if (!(*fit)->shortcut().empty())
|
||||
|
Loading…
Reference in New Issue
Block a user