From 946287b882ea16ed104fabd1ff6b83c5dc9a7b1d Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Wed, 22 Oct 2008 09:11:42 +0000 Subject: [PATCH] Fix bug 5263 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mathed/MathFactory.cpp b/src/mathed/MathFactory.cpp index 9e3bbca20b..c8060086b9 100644 --- a/src/mathed/MathFactory.cpp +++ b/src/mathed/MathFactory.cpp @@ -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()) {