]> git.lyx.org Git - features.git/blobdiff - src/BufferView.cpp
Don't save background color in Text. Hand it down at drawing time.
[features.git] / src / BufferView.cpp
index 7fbd7187be614a96428e28cd8da0884345738d13..a4185096250703965050569052e0f91350220276 100644 (file)
@@ -1545,7 +1545,8 @@ void BufferView::draw(frontend::Painter & pain)
        if (pi.full_repaint)
                // Clear background (if not delegated to rows)
                pain.fillRectangle(0, metrics_info_.y1, width_,
-                       metrics_info_.y2 - metrics_info_.y1, text.backgroundColor());
+                       metrics_info_.y2 - metrics_info_.y1,
+                       buffer_.inset().backgroundColor());
 
        TextMetrics const & tm = text_metrics_[&text];