mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +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
|
||||
{
|
||||
// we only need an \fcolorbox if the framecolor is something else
|
||||
// than black in the output or if the backgroundcolor is not none
|
||||
// (also needed with white, consider non-white page coloring)
|
||||
return getFrameColor() != "black" || params_.backgroundcolor != "none";
|
||||
// we need an \fcolorbox if the framecolor or the backgroundcolor
|
||||
// is non-default. We also do it with black and white for consistency.
|
||||
return params_.framecolor != "default" || params_.backgroundcolor != "none";
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user