commit 2b69dc54daad7ba50c505e77203e99fe4d7d153c
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Sun Oct 1 12:20:40 2023 +0200

    Revert the logic of 343a9749abe4f3
    
    It might be better to be explicit also with black, after all.
---
 src/insets/InsetBox.cpp |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/insets/InsetBox.cpp b/src/insets/InsetBox.cpp
index 1643a0d..edfa6a5 100644
--- a/src/insets/InsetBox.cpp
+++ b/src/insets/InsetBox.cpp
@@ -899,10 +899,9 @@ string const InsetBox::getBackgroundColor() const
 
 bool InsetBox::useFColorBox() const
 {
-       // we only need an \fcolorbox if the framecolor is something else
-       // than black in the output or if the backgroundcolor is not none
-       // (also needed with white, consider non-white page coloring)
-       return getFrameColor() != "black" || params_.backgroundcolor != "none";
+       // we need an \fcolorbox if the framecolor or the backgroundcolor
+       // is non-default. We also do it with black and white for consistency.
+       return params_.framecolor != "default" || params_.backgroundcolor != 
"none";
 }
 
 
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to