Fix bug #7420 (ASSERTION when moving paragraph up in info inset)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38251 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2011-04-05 01:00:30 +00:00
parent 5dc4bf445b
commit bd744cac00

View File

@ -172,6 +172,10 @@ bool GuiErrorList::goTo(int item)
return false;
}
// Don't try to highlight the content of info insets
while (dit.inset().lyxCode() == INFO_CODE)
dit.backwardPos();
// Now make the selection.
BufferView * bv = const_cast<BufferView *>(bufferview());
if (bv->selectIfEmpty(dit)) {