Avoid crash due to an infinite recursive loop when inset is NULL.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28242 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-01-18 15:21:57 +00:00
parent 60ce0b3226
commit 83f13982fc

View File

@ -906,7 +906,7 @@ FuncStatus BufferView::getStatus(FuncRequest const & cmd)
// handles the lfun, other start from scratch
Inset * inset = cur.nextInset();
if (!inset || !inset->getStatus(cur, cmd, flag))
flag = lyx::getStatus(cmd);
flag.setEnabled(false);
break;
}