From: Enrico Forestieri Date: Mon, 28 Feb 2011 15:35:29 +0000 (+0000) Subject: Fix bug #7325 (ASSERTION when moving paragraph down in info inset) X-Git-Tag: 2.0.0~630 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2761cd67bbf44a8f8b4c2d14f001e6c2665d29ae;p=features.git 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 --- 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();