mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
60ce0b3226
commit
83f13982fc
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user