mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
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:
parent
5dc4bf445b
commit
bd744cac00
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user