]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.cpp
partial fix for bug 6986: Use the right tex2lyx (at least if tex2lyx is installed)
[lyx.git] / src / rowpainter.cpp
index 5fe34d792e41724cba988a1c9850b117276b03dd..5ea2ffc8753df92b0cf9c03472f8df1c0879a938 100644 (file)
@@ -417,7 +417,7 @@ void RowPainter::paintFromPos(pos_type & vpos, bool changed)
                BufferView const * bv = pi_.base.bv;
                Cursor const & cur = bv->cursor();
                bool current_word = false;
-               if (par_.id() == cur.paragraph().id()) {
+               if (cur.inTexted() && par_.id() == cur.paragraph().id()) {
                        pos_type cpos = cur.pos();
                        if (cpos > 0 && cpos == par_.size() && !par_.isWordSeparator(cpos-1))
                                --cpos;