]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.C
Partially extracted from r14281 from the younes branch.
[lyx.git] / src / rowpainter.C
index b04ca0f7e107b52894ffb941e678562c1eb6c94e..498d1c982f12a8fd6da67bd8aadf7f4460c036d0 100644 (file)
@@ -34,6 +34,8 @@
 
 #include "frontends/font_metrics.h"
 #include "frontends/nullpainter.h"
+#include "frontends/LyXView.h"
+#include "frontends/WorkArea.h"
 #include "frontends/Painter.h"
 
 #include "insets/insettext.h"
@@ -879,7 +881,7 @@ void paintPar
 
 void paintText(BufferView const & bv, ViewMetricsInfo const & vi)
 {
-       Painter & pain = bv.painter();
+       Painter & pain = bv.owner()->workArea()->getPainter();
        LyXText * const text = bv.text();
        bool const select = bv.cursor().selection();