]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetText.cpp
Revert "Fix drawing of collpsable insets"
[features.git] / src / insets / InsetText.cpp
index 2e60692f3c182326d2a9f63c9ceb5ea2249969fc..7680ee5fa925d8e06d4b0402c5bf143aa4ce12a5 100644 (file)
@@ -221,6 +221,10 @@ void InsetText::draw(PainterInfo & pi, int x, int y) const
        int const xframe = x + TEXT_TO_INSET_OFFSET / 2;
        bool change_drawn = false;
        if (drawFrame_ || pi.full_repaint) {
+               if (pi.full_repaint)
+                       pi.pain.fillRectangle(xframe, yframe, w, h,
+                               pi.backgroundColor(this));
+
                // Change color of the frame in tracked changes, like for tabulars.
                // Only do so if the color is not custom. But do so even if RowPainter
                // handles the strike-through already.