]> git.lyx.org Git - features.git/commitdiff
Fix command-line export
authorAbdelrazak Younes <younes@lyx.org>
Sat, 14 Oct 2006 14:15:06 +0000 (14:15 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 14 Oct 2006 14:15:06 +0000 (14:15 +0000)
* MathFactory.C:
  - initMath(): revert change from r15327 because initSymbols() is needed for proper math parsing.
  - math_font_available(): return false if lyx::use_gui is false.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15331 a592a061-630c-0410-9148-cb99ea01b6c8

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();
        }
 }