void InsetCollapsable::draw(PainterInfo & pi, int x, int y) const
{
autoOpen_ = pi.base.bv->cursor().isInside(this);
+ int const old_color = pi.background_color;
pi.background_color = backgroundColor();
- const int xx = x + TEXT_TO_INSET_OFFSET;
+ int const xx = x + TEXT_TO_INSET_OFFSET;
// Draw button first -- top, left or only
Dimension dimc = dimensionCollapsed();
break;
}
setPosCache(pi, x, y);
+ pi.background_color = old_color;
}