From 2854355fe3f898152416db5f4ddadce775bde673 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 1 Oct 2023 09:34:50 +0200 Subject: [PATCH] Require xcolor whenever we use an \fcolorbox --- src/insets/InsetBox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: