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:
Jean-Marc Lasgouttes 2006-05-30 13:48:27 +00:00
parent c4edb019f5
commit a719e89ffe

View File

@ -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())