]> git.lyx.org Git - features.git/commitdiff
Require xcolor whenever we use an \fcolorbox
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 1 Oct 2023 07:34:50 +0000 (09:34 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 1 Oct 2023 07:35:53 +0000 (09:35 +0200)
src/insets/InsetBox.cpp

index 36507cf8e280b11aa8bbe8dcfc7d03b006a4fc98..c15ae86c9869ec4b8fc00f087f796ee4c4f29907 100644 (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: