]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathFactory.C
Fix command-line export
[lyx.git] / src / mathed / MathFactory.C
index 6bc40bbea90b7e012d284e83ecf55ed00e8be955..85cf61c0c8843fd68eea1b652b8283da2d7d4b71 100644 (file)
@@ -74,6 +74,9 @@ using std::istringstream;
 
 bool has_math_fonts;
 
+namespace lyx {
+extern bool use_gui;
+}
 
 namespace {
 
@@ -84,6 +87,9 @@ WordList theWordList;
 
 bool math_font_available(string & name)
 {
+       if (!lyx::use_gui)
+               return false;
+
        LyXFont f;
        augmentFont(f, name);