]> git.lyx.org Git - features.git/commitdiff
Fix bug 5263
authorEnrico Forestieri <forenr@lyx.org>
Wed, 22 Oct 2008 09:11:42 +0000 (09:11 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 22 Oct 2008 09:11:42 +0000 (09:11 +0000)
http://bugzilla.lyx.org/show_bug.cgi?id=5263

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

src/mathed/MathFactory.cpp

index 9e3bbca20b6cba44483f7d9abdf08a3687f96eae..c8060086b9ac3abf248d4d2d98c62cdcceba1b44 100644 (file)
@@ -76,6 +76,9 @@ MathWordList theWordList;
 
 bool isMathFontAvailable(docstring & name)
 {
+       if (!use_gui)
+               return false;
+
        FontInfo f;
        augmentFont(f, name);
 
@@ -97,9 +100,6 @@ bool isMathFontAvailable(docstring & name)
 
 void initSymbols()
 {
-       if (!use_gui)
-               return;
-
        FileName const filename = libFileSearch(string(), "symbols");
        LYXERR(Debug::MATHED, "read symbols from " << filename);
        if (filename.empty()) {