Fix crash when apply Preferences. This was introduced in r36625. Just one check too few.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36641 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-12-01 00:51:10 +00:00
parent 08cad4b087
commit 75cb1ebdc1

View File

@ -902,6 +902,8 @@ void MenuDefinition::expandDocuments()
int i = 0;
while (true) {
if (!guiApp->currentView())
break;
GuiWorkArea * wa = guiApp->currentView()->workArea(i);
if (!wa)
break;