Modified: lyx-devel/trunk/src/frontends/qt4/GuiErrorList.cpp
==============================================================================
+       // Don't try to highlight the content of info insets
+       while (dit.inset().lyxCode() == INFO_CODE)
+               dit.backwardPos();
+

It feels wrong that GuiErrorList has to know about specific insets and that it leads to a crash otherwise.

Shouldn't this be part of the DocIterator/Cursor class instead ? Still, it would probably need to ask Inset for some property rather than introducing a special case for InfoInsets.

Vincent

Reply via email to