From bd744cac00a68c2a5609811e9bdbd55dcb6eb2ce Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 5 Apr 2011 01:00:30 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiErrorList.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frontends/qt4/GuiErrorList.cpp b/src/frontends/qt4/GuiErrorList.cpp index c2180df5c6..e28150c840 100644 --- a/src/frontends/qt4/GuiErrorList.cpp +++ b/src/frontends/qt4/GuiErrorList.cpp @@ -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()); if (bv->selectIfEmpty(dit)) {