]> git.lyx.org Git - lyx.git/commit
Fixup d207e85c: paint sublabel with the correct background color
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 24 Feb 2020 09:37:14 +0000 (10:37 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 7 Jun 2020 12:25:48 +0000 (14:25 +0200)
commitf01c23bd5a6c0adcd0bb9238112c3303d1adbc96
tree14a716f12b99f94a4890408560dc108b14ac7020
parent696d9dc52b62cb6a2241f8ddeb8c2b4ce4a84474
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.

To fix this, extend MetricsInfo::backgroundColor to work when no inset
is specified. The code is also simplified as in master.

(cherry picked from commit 74540c9896892b8f956f52258a59613af83a5cf8)
(cherry picked from commit a71b96ac426438abb4fe835d0ad000c769693421)
src/MetricsInfo.cpp
src/MetricsInfo.h
src/insets/InsetCollapsible.cpp
status.23x