commit 51813ef33d7eb9fbdad769babed469bbac75d958
Author: Juergen Spitzmueller <[email protected]>
Date: Wed Feb 26 10:05:50 2025 +0100
Fix thinko in GuiBox color code
---
src/insets/InsetBox.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/insets/InsetBox.cpp b/src/insets/InsetBox.cpp
index 311e46fb3c..c2f90eaaa0 100644
--- a/src/insets/InsetBox.cpp
+++ b/src/insets/InsetBox.cpp
@@ -941,12 +941,12 @@ string const InsetBox::getFrameColor(bool const gui) const
string const InsetBox::getBackgroundColor(bool const gui) const
{
if (params_.backgroundcolor == "none")
- return (gui) ? "white"
- : "page_backgroundcolor";
+ return (gui) ? "page_backgroundcolor"
+ : "white";
registerLyXColor(params_.backgroundcolor);
if (!lcolor.isKnownLyXName(params_.backgroundcolor))
- return (gui) ? "white"
- : "page_backgroundcolor";
+ return (gui) ? "page_backgroundcolor"
+ : "white";
return gui ? params_.backgroundcolor
:
lcolor.getLaTeXName(lcolor.getFromLyXName(params_.backgroundcolor));
}
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs