commit 55f74829aaef86d1e7f0a44137bb29f7c887b5f8
Author: Enrico Forestieri <[email protected]>
Date: Sun May 4 17:21:02 2025 +0200
Fix bug #13184
---
src/mathed/InsetMathColor.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mathed/InsetMathColor.cpp b/src/mathed/InsetMathColor.cpp
index a590e4b726..677fae6097 100644
--- a/src/mathed/InsetMathColor.cpp
+++ b/src/mathed/InsetMathColor.cpp
@@ -67,7 +67,9 @@ void InsetMathColor::draw(PainterInfo & pi, int x, int y)
const
Changer dummy = pi.base.changeEnsureMath(current_mode_);
ColorCode origcol = pi.base.font.color();
- pi.base.font.setColor(lcolor.getFromLaTeXName(to_utf8(color_), false));
+ ColorCode col = lcolor.getFromLaTeXName(to_utf8(color_), false);
+ pi.base.font.setColor(col != Color_none ? col : lcolor.getFromLyXName(
+ theLaTeXColors().getFromLaTeXColor(to_utf8(color_)), false));
cell(0).draw(pi, x, y);
pi.base.font.setColor(origcol);
}
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs