Generalize check to generic non-editable insets.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38257 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2011-04-05 15:40:00 +00:00
parent f9f7c4a4bd
commit 13dd04602a

View File

@ -172,8 +172,8 @@ bool GuiErrorList::goTo(int item)
return false;
}
// Don't try to highlight the content of info insets
while (dit.inset().lyxCode() == INFO_CODE)
// Don't try to highlight the content of non-editable insets
while (!dit.inset().editable())
dit.backwardPos();
// Now make the selection.