]> git.lyx.org Git - features.git/commitdiff
Fix bug #7325 (ASSERTION when moving paragraph down in info inset)
authorEnrico Forestieri <forenr@lyx.org>
Mon, 28 Feb 2011 15:35:29 +0000 (15:35 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 28 Feb 2011 15:35:29 +0000 (15:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37801 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiErrorList.cpp

index 1e82ac269997b0db1e8dfd2422bcc752d7f9e334..212cd39af519003525ba04b5872cc4683a3080c0 100644 (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.forwardPos();
+
        // If this paragraph has zero size, highlight the previous one
        while (dit.paragraph().size() == 0)
                dit.backwardPos();