mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Revert the logic of 343a9749ab
It might be better to be explicit also with black, after all.
This commit is contained in:
parent
242381464b
commit
2b69dc54da
@ -899,10 +899,9 @@ string const InsetBox::getBackgroundColor() const
|
|||||||
|
|
||||||
bool InsetBox::useFColorBox() const
|
bool InsetBox::useFColorBox() const
|
||||||
{
|
{
|
||||||
// we only need an \fcolorbox if the framecolor is something else
|
// we need an \fcolorbox if the framecolor or the backgroundcolor
|
||||||
// than black in the output or if the backgroundcolor is not none
|
// is non-default. We also do it with black and white for consistency.
|
||||||
// (also needed with white, consider non-white page coloring)
|
return params_.framecolor != "default" || params_.backgroundcolor != "none";
|
||||||
return getFrameColor() != "black" || params_.backgroundcolor != "none";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user