From: Juergen Spitzmueller Date: Sun, 1 Oct 2023 07:34:50 +0000 (+0200) Subject: Require xcolor whenever we use an \fcolorbox X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2854355fe3f898152416db5f4ddadce775bde673;p=features.git Require xcolor whenever we use an \fcolorbox --- diff --git a/src/insets/InsetBox.cpp b/src/insets/InsetBox.cpp index 36507cf8e2..c15ae86c98 100644 --- a/src/insets/InsetBox.cpp +++ b/src/insets/InsetBox.cpp @@ -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: