commit 15c2db1c1edaea55c0c3e74e464748310cf1d973
Author: Juergen Spitzmueller <[email protected]>
Date:   Tue Apr 1 09:46:49 2025 +0200

    Correct registering of global colors (#13166).
---
 src/BufferParams.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp
index 7869325fdc..1dc217527d 100644
--- a/src/BufferParams.cpp
+++ b/src/BufferParams.cpp
@@ -467,7 +467,9 @@ BufferParams::BufferParams()
        fontcolor = "none";
        // light gray is the default font color for greyed-out notes
        notefontcolor = "lightgray";
+       registerLyXColor("notefontcolor", notefontcolor);
        boxbgcolor = "red";
+       registerLyXColor("boxbgcolor", boxbgcolor);
        table_border_color = "default";
        table_odd_row_color = "default";
        table_even_row_color = "default";
@@ -1295,7 +1297,6 @@ string BufferParams::readToken(Lexer & lex, string const 
& token,
                if (token == "\\notefontcolor") {
                        lex.eatLine();
                        notefontcolor = lex.getString();
-                       registerLyXColor("notefontcolor", notefontcolor);
                        // set a local name for the painter
                        lcolor.setColor("notefontcolor@" + 
filename.absFileName(),
                                        lcolor.getX11HexName(notefontcolor));
@@ -1304,7 +1305,6 @@ string BufferParams::readToken(Lexer & lex, string const 
& token,
                if (token == "\\boxbgcolor") {
                        lex.eatLine();
                        boxbgcolor = lex.getString();
-                       registerLyXColor("boxbgcolor", boxbgcolor);
                        // 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