]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiErrorList.cpp
Fix the tab ordering of GuiDocument components.
[lyx.git] / src / frontends / qt4 / GuiErrorList.cpp
index c2180df5c6f2741a14eebe6e680317114ce87bb0..9924d649a1a7edd532453c4e99d14717322a5943 100644 (file)
@@ -172,6 +172,10 @@ bool GuiErrorList::goTo(int item)
                return false;
        }
 
+       // Don't try to highlight the content of non-editable insets
+       while (!dit.inset().editable())
+               dit.backwardPos();
+
        // Now make the selection.
        BufferView * bv = const_cast<BufferView *>(bufferview());
        if (bv->selectIfEmpty(dit)) {