commit 68747795d5e73d46092a575950c13c12c9fa869f
Author: Juergen Spitzmueller <[email protected]>
Date:   Fri Jul 11 16:15:03 2025 +0200

    Fix construction of "none" notefontcolor or boxbgcolor
---
 src/BufferParams.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp
index 91919ff40d..8247b8904a 100644
--- a/src/BufferParams.cpp
+++ b/src/BufferParams.cpp
@@ -1299,6 +1299,8 @@ string BufferParams::readToken(Lexer & lex, string const 
& token,
                if (token == "\\notefontcolor") {
                        lex.eatLine();
                        notefontcolor = lex.getString();
+                       if (notefontcolor == "none")
+                               break;
                        // set a local name for the painter
                        lcolor.setColor("notefontcolor@" + 
filename.absFileName(),
                                        lcolor.getX11HexName(notefontcolor));
@@ -1307,6 +1309,8 @@ string BufferParams::readToken(Lexer & lex, string const 
& token,
                if (token == "\\boxbgcolor") {
                        lex.eatLine();
                        boxbgcolor = lex.getString();
+                       if (boxbgcolor == "none")
+                               break;
                        // set a local name for the painter
                        lcolor.setColor("boxbgcolor@" + filename.absFileName(),
                                        lcolor.getX11HexName(boxbgcolor));
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to