]> git.lyx.org Git - lyx.git/commitdiff
Generalize check to generic non-editable insets.
authorEnrico Forestieri <forenr@lyx.org>
Tue, 5 Apr 2011 15:40:00 +0000 (15:40 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 5 Apr 2011 15:40:00 +0000 (15:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38257 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiErrorList.cpp

index e28150c8408f2e95e8d30e0320e2f03bbef84be4..9924d649a1a7edd532453c4e99d14717322a5943 100644 (file)
@@ -172,8 +172,8 @@ bool GuiErrorList::goTo(int item)
                return false;
        }
 
-       // Don't try to highlight the content of info insets
-       while (dit.inset().lyxCode() == INFO_CODE)
+       // Don't try to highlight the content of non-editable insets
+       while (!dit.inset().editable())
                dit.backwardPos();
 
        // Now make the selection.