]> git.lyx.org Git - features.git/blobdiff - src/rowpainter.C
move the Selection structure from LyXText to BufferView
[features.git] / src / rowpainter.C
index 12b40d365a8fdecaf7061b0d2dcc50834651a306..5e49460f44af4d2f4ac3d2fbbec219f31fe233b4 100644 (file)
@@ -132,7 +132,7 @@ RowPainter::RowPainter(BufferView const & bv, LyXText const & text,
                paintBackground();
 
        // paint the selection background
-       if (text_.selection.set() && &text_ == bv_.fullCursor().innerText())
+       if (bv_.selection().set() && &text_ == bv_.fullCursor().innerText())
                paintSelection();
 
        // vertical lines for appendix