Fix crash with command line export

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22825 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-02-07 08:57:12 +00:00
parent cb0e41adf7
commit 39e5dc250a

View 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))