Require xcolor whenever we use an \fcolorbox

This commit is contained in:
Juergen Spitzmueller 2023-10-01 09:34:50 +02:00
parent 3e063daeab
commit 2854355fe3

View File

@ -810,7 +810,8 @@ void InsetBox::validate(LaTeXFeatures & features) const
break;
case Boxed:
features.require("calc");
if (getFrameColor() != "black" || getBackgroundColor() != "white")
if (params_.framecolor != "default" || params_.backgroundcolor != "none")
// \fcolorbox, which is part of (x)color, is used
features.require("xcolor");
break;
case ovalbox: