]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetText.cpp
Fix drawing of collpsable insets
[features.git] / src / insets / InsetText.cpp
index 7680ee5fa925d8e06d4b0402c5bf143aa4ce12a5..2e60692f3c182326d2a9f63c9ceb5ea2249969fc 100644 (file)
@@ -221,10 +221,6 @@ 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.