]> git.lyx.org Git - features.git/blobdiff - src/TextMetrics.cpp
Don't save background color in Text. Hand it down at drawing time.
[features.git] / src / TextMetrics.cpp
index cb5946266832028daa23517cadf5e5a92fb5b783..06982eab97a9f4dd4c0eddcb447e2a2f930c6244 100644 (file)
@@ -1716,8 +1716,8 @@ void TextMetrics::drawParagraph(PainterInfo & pi, pit_type pit, int x, int y) co
                // (if paragraph background was not cleared)
                if (!pi.full_repaint && row_has_changed) {
                        pi.pain.fillRectangle(x, y - rit->ascent(),
-                       width(), rit->height(),
-                       text_->backgroundColor());
+                               width(), rit->height(),
+                               Color_color(Color::color(pi.background_color)));
                }
 
                // Instrumentation for testing row cache (see also