mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Fixup d207e85c
: paint sublabel with the correct background color
The above mentionned patch did paint the background of the sublabel to avoid "bold-like" effect. However the correct backgound color is the row's one, not the inset's one.
This commit is contained in:
parent
a9d9fdc9bf
commit
74540c9896
@ -371,7 +371,7 @@ void InsetCollapsible::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);
|
||||
Color const col = pi.full_repaint ? Color_none : pi.background_color;
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user