]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathFactory.cpp
simplify GuiToc / TocWidget interaction. Much can still be simplified...
[lyx.git] / src / mathed / MathFactory.cpp
index a7d3ba0300a0e22d2a9f8d50115f272eba3d6485..6ca7a4d9f6f39684b237289cb09842cb8e416e76 100644 (file)
@@ -58,6 +58,8 @@
 
 #include "frontends/FontLoader.h"
 
+#include "LyX.h" // use_gui
+
 using namespace std;
 using namespace lyx::support;
 
@@ -97,6 +99,9 @@ bool math_font_available(docstring & name)
 
 void initSymbols()
 {
+       if (!use_gui)
+               return;
+
        FileName const filename = libFileSearch(string(), "symbols");
        LYXERR(Debug::MATHED, "read symbols from " << filename);
        if (filename.empty()) {