]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathFactory.C
This commit fixes a crash when accessing a math inset. This was due to an invalid...
[lyx.git] / src / mathed / MathFactory.C
index fd322961d4f82c45726fc121fab55b114955e65c..6bc40bbea90b7e012d284e83ecf55ed00e8be955 100644 (file)
@@ -60,7 +60,7 @@
 #include "support/filetools.h" // LibFileSearch
 #include "support/lstrings.h"
 
-#include "frontends/lyx_gui.h"
+#include "frontends/FontLoader.h"
 
 #include <fstream>
 #include <sstream>
@@ -88,7 +88,7 @@ bool math_font_available(string & name)
        augmentFont(f, name);
 
        // Do we have the font proper?
-       if (lyx_gui::font_available(f))
+       if (theFontLoader().available(f))
                return true;
 
        // can we fake it?
@@ -274,6 +274,8 @@ MathAtom createInsetMath(string const & s)
                        return MathAtom(new InsetMathFontOld(l));
                if (inset == "matrix")
                        return MathAtom(new InsetMathAMSArray(s));
+               if (inset == "split")
+                       return MathAtom(new InsetMathSplit(s));
                if (inset == "big")
                        // we can't create a InsetMathBig, since the argument
                        // is missing.