commit ba55d0a407c95d04478d98dd784a62eb02a40aca
Author: Koji Yokota <[email protected]>
Date:   Fri Jul 11 10:20:50 2025 +0900

    Move RC_USE_SYSTEM_COLOR setting from SPELLCHECKER to COLOR SECTION
---
 src/LyXRC.cpp | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)

diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp
index 8e0d875442..0fe91a2be1 100644
--- a/src/LyXRC.cpp
+++ b/src/LyXRC.cpp
@@ -2112,7 +2112,6 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, 
string const & name) c
                << "# COLOR SECTION ###################################\n"
                << "#\n\n";
 
-       // fall through
        case RC_UI_THEME:
                if (ignore_system_lyxrc ||
                        ui_theme != system_lyxrc.ui_theme)
@@ -2120,8 +2119,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, 
string const & name) c
 
                if (tag != RC_LAST)
                        break;
-
-       // fall through
+               // fall through
        case RC_SET_COLOR:
                for (int i = 0; i < Color_ignore; ++i) {
                        ColorCode lc = static_cast<ColorCode>(i);
@@ -2138,6 +2136,17 @@ void LyXRC::write(ostream & os, bool 
ignore_system_lyxrc, string const & name) c
                }
                if (tag != RC_LAST)
                        break;
+               // fall through
+       case RC_USE_SYSTEM_COLORS:
+               if (ignore_system_lyxrc ||
+                   use_system_colors != system_lyxrc.use_system_colors) {
+                       os << "\\use_system_colors "
+                          << convert<string>(use_system_colors)
+                          << '\n';
+               }
+               if (tag != RC_LAST)
+                       break;
+               // fall through
 
        os << "\n#\n"
                 << "# PRINTER SECTION ###################################\n"
@@ -2479,16 +2488,6 @@ void LyXRC::write(ostream & os, bool 
ignore_system_lyxrc, string const & name) c
                if (tag != RC_LAST)
                        break;
                // fall through
-       case RC_USE_SYSTEM_COLORS:
-               if (ignore_system_lyxrc ||
-                   use_system_colors != system_lyxrc.use_system_colors) {
-                       os << "\\use_system_colors "
-                          << convert<string>(use_system_colors)
-                          << '\n';
-               }
-               if (tag != RC_LAST)
-                       break;
-               // fall through
        case RC_USE_TOOLTIP:
                if (ignore_system_lyxrc ||
                    use_tooltip != system_lyxrc.use_tooltip) {
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to