https://bugs.documentfoundation.org/show_bug.cgi?id=156685

--- Comment #4 from Regina Henschel <rb.hensc...@t-online.de> ---
Some more findings:

SdrObject::setSuitableOutlinerBg creates the value from the background fill of
the shape. And because the table object has no own style, the default style is
used. That has currently RGB(114,159,207). Then this is used in IsDark() in
tools.hxx. But for RGB(114,159,207) the GetLuminance returns 151 and therefore
the table is considered as "dark".

So the error is not directly the mentioned commit, but the fact that the
outliner does not use the actual table cell background but the SdrObject fill
color.

To test it, create an own new graphic style with an area fill color and assign
it to the table. This does not change the table cell background. Now vary the
area fill color, e.g. use a gray of 156 or a gray of 157.

That error exist already in LO7.5. If the font color is set to automatic and
you change the cell background to black or to a dark color, the text does not
become white as it should for "automatic".

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to