]> git.lyx.org Git - features.git/commitdiff
Fix bug #7420 (ASSERTION when moving paragraph up in info inset)
authorEnrico Forestieri <forenr@lyx.org>
Tue, 5 Apr 2011 01:00:30 +0000 (01:00 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 5 Apr 2011 01:00:30 +0000 (01:00 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38251 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiErrorList.cpp

index c2180df5c6f2741a14eebe6e680317114ce87bb0..e28150c8408f2e95e8d30e0320e2f03bbef84be4 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.backwardPos();
+
        // Now make the selection.
        BufferView * bv = const_cast<BufferView *>(bufferview());
        if (bv->selectIfEmpty(dit)) {