From 13dd04602adf614b0a521e16fc7cc9a5d8bb2ee3 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 5 Apr 2011 15:40:00 +0000 Subject: [PATCH] Generalize check to generic non-editable insets. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38257 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiErrorList.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiErrorList.cpp b/src/frontends/qt4/GuiErrorList.cpp index e28150c840..9924d649a1 100644 --- a/src/frontends/qt4/GuiErrorList.cpp +++ b/src/frontends/qt4/GuiErrorList.cpp @@ -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.