]> git.lyx.org Git - features.git/blobdiff - src/rowpainter.C
simplify paintText() interface.
[features.git] / src / rowpainter.C
index 5eed74d9a79369634f6286b061c0fccb7c8609c7..c38fa06248d3a6e6c6fe83ebd2c4ed934285b4fc 100644 (file)
@@ -895,13 +895,14 @@ void paintPar
 } // namespace anon
 
 
-void paintText(BufferView & bv, ViewMetricsInfo const & vi,
+void paintText(BufferView & bv,
               Painter & pain)
 {
        BOOST_ASSERT(bv.buffer());
        LyXText & text = bv.buffer()->text();
        bool const select = bv.cursor().selection();
-
+       ViewMetricsInfo const & vi = bv.viewMetricsInfo();
+       
        PainterInfo pi(const_cast<BufferView *>(&bv), pain);
        // Should the whole screen, including insets, be refreshed?
        bool repaintAll = select || !vi.singlepar;