]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathFactory.C
Fix command-line export
[lyx.git] / src / mathed / MathFactory.C
index 60b0a6c09ee30c009b24de52ca4336b75585e35f..85cf61c0c8843fd68eea1b652b8283da2d7d4b71 100644 (file)
@@ -87,6 +87,9 @@ WordList theWordList;
 
 bool math_font_available(string & name)
 {
+       if (!lyx::use_gui)
+               return false;
+
        LyXFont f;
        augmentFont(f, name);
 
@@ -230,8 +233,7 @@ void initMath()
        if (!initialized) {
                initialized = true;
                initParser();
-               if (lyx::use_gui)
-                       initSymbols();
+               initSymbols();
        }
 }