[LyX/master] Amend 087f6bce

Scott Kostyshak skostysh at lyx.org
Sat Sep 30 23:05:25 UTC 2023


commit a6882a1db0152af270bcba08215424793946d99a
Author: Scott Kostyshak <skostysh at lyx.org>
Date:   Sat Sep 30 20:21:22 2023 -0400

    Amend 087f6bce
    
    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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/insets/InsetBox.cpp b/src/insets/InsetBox.cpp
index 36507cf..81506be 100644
--- a/src/insets/InsetBox.cpp
+++ b/src/insets/InsetBox.cpp
@@ -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:


More information about the lyx-cvs mailing list