]> git.lyx.org Git - features.git/commitdiff
Fix crash with command line export
authorAbdelrazak Younes <younes@lyx.org>
Thu, 7 Feb 2008 08:57:12 +0000 (08:57 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 7 Feb 2008 08:57:12 +0000 (08:57 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22825 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyX.cpp

index 7bb6923ce9bd1c3f5136b3bcaae6ba38c28f6019..29c8defc23149d180a26a0e89131a8d7b676848f 100644 (file)
@@ -845,7 +845,7 @@ bool LyX::init()
        pimpl_->lyxfunc_.initKeySequences(&pimpl_->toplevel_keymap_);
 
        // Read menus
-       if (!readUIFile(lyxrc.ui_file))
+       if (use_gui && !readUIFile(lyxrc.ui_file))
                return false;
 
        if (lyxerr.debugging(Debug::LYXRC))