]> git.lyx.org Git - features.git/commitdiff
Amend 087f6bce
authorScott Kostyshak <skostysh@lyx.org>
Sun, 1 Oct 2023 00:21:22 +0000 (20:21 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Sun, 1 Oct 2023 00:22:59 +0000 (20:22 -0400)
Explanation from Udi:

  There is a missing validation for the requirement of xcolor in
  InsetBox::validate, the case we use Boxed with non-default color.

Patch from Udi.

src/insets/InsetBox.cpp

index 36507cf8e280b11aa8bbe8dcfc7d03b006a4fc98..81506be6da35e16a0ab1448acc088377d4edb131 100644 (file)
@@ -810,7 +810,7 @@ void InsetBox::validate(LaTeXFeatures & features) const
                break;
        case Boxed:
                features.require("calc");
-               if (getFrameColor() != "black" || getBackgroundColor() != "white")
+               if (getFrameColor() != "default" || getBackgroundColor() != "white")
                        features.require("xcolor");
                break;
        case ovalbox: