From 2761cd67bbf44a8f8b4c2d14f001e6c2665d29ae Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Mon, 28 Feb 2011 15:35:29 +0000 Subject: [PATCH] Fix bug #7325 (ASSERTION when moving paragraph down in info inset) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37801 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 1e82ac2699..212cd39af5 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.forwardPos(); + // If this paragraph has zero size, highlight the previous one while (dit.paragraph().size() == 0) dit.backwardPos(); -- 2.39.2