]> 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 a3a77d1123d141ea9a7679d1df977f3fa2463ae5..6ca7a4d9f6f39684b237289cb09842cb8e416e76 100644 (file)
 #include "insets/InsetCommand.h"
 
 #include "support/docstream.h"
+#include "support/FileName.h"
 #include "support/filetools.h" // LibFileSearch
 #include "support/lstrings.h"
 
 #include "frontends/FontLoader.h"
 
+#include "LyX.h" // use_gui
+
 using namespace std;
 using namespace lyx::support;
 
@@ -96,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()) {