mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Clear background behind sublables when necessary.
This is analogous to what has been done to address #4889 and #10359. Fixes bug #10475.
This commit is contained in:
parent
5d85a42bf0
commit
d207e85cfd
@ -333,10 +333,11 @@ 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, Color_none, Color_none);
|
||||
buttonLabel(bv), font, col, Color_none);
|
||||
}
|
||||
|
||||
int const y1 = y - textdim.asc + 3;
|
||||
|
Loading…
Reference in New Issue
Block a user