commit a603b1cedeaa476de59e3bb6dca5707b399a61b1
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Wed Aug 13 13:12:50 2025 +0200

    Fix null pointer with non-gui usage (#13213)
    
    This function is only needed in GUI mode, anyway
---
 src/LyX.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/LyX.cpp b/src/LyX.cpp
index 023440d6f9..9df657e5f3 100644
--- a/src/LyX.cpp
+++ b/src/LyX.cpp
@@ -974,7 +974,8 @@ bool LyX::init()
        // This one is edited through the preferences dialog.
        if (!readRcFile("preferences", true))
                return false;
-       pimpl_->application_->applyPrefs();
+       if (use_gui)
+               pimpl_->application_->applyPrefs();
 
        // The language may have been set to someting useful through prefs
        setLocale();
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to