]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCollapsable.cpp
Fix drawing of collpsable insets
[features.git] / src / insets / InsetCollapsable.cpp
index 92802b96d4bd0fb44b462694e00f1ebaffd12a16..213e058b0680acf8c20a4d79c1bc0f5917f6ee21 100644 (file)
@@ -335,11 +335,10 @@ void InsetCollapsable::draw(PainterInfo & pi, int x, int y) const
                        int w = 0;
                        int a = 0;
                        int d = 0;
-                       Color const col = pi.full_repaint ? Color_none : pi.backgroundColor(this);
                        theFontMetrics(font).rectText(buttonLabel(bv), w, a, d);
                        int const ww = max(textdim.wid, w);
                        pi.pain.rectText(x + (ww - w) / 2, y + desc + a,
-                                        buttonLabel(bv), font, col, Color_none);
+                                        buttonLabel(bv), font, Color_none, Color_none);
                }
 
                int const y1 = y - textdim.asc + 3;