]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCollapsable.cpp
Don't save background color in Text. Hand it down at drawing time.
[features.git] / src / insets / InsetCollapsable.cpp
index 2534109cec7a2b300a1db1c3f395b08c656f8a63..fc842f7d6e6af7afbcf64e180205606d5c7893c5 100644 (file)
@@ -244,7 +244,7 @@ bool InsetCollapsable::setMouseHover(bool mouse_hover)
 void InsetCollapsable::draw(PainterInfo & pi, int x, int y) const
 {
        autoOpen_ = pi.base.bv->cursor().isInside(this);
-       text_.background_color_ = backgroundColor();
+       pi.background_color = backgroundColor();
        const int xx = x + TEXT_TO_INSET_OFFSET;
 
        // Draw button first -- top, left or only