]> git.lyx.org Git - features.git/blobdiff - src/mathed/MathFactory.C
Fix bug 1395 by Stefan Schimanski:
[features.git] / src / mathed / MathFactory.C
index 62bcef30db3a579a06823e195289936c7e915c2c..2be23f6915926d5ebfbd589dfe96bffb38dea81e 100644 (file)
@@ -392,15 +392,7 @@ MathAtom createInsetMath(docstring const & s)
        if (s == "vphantom")
                return MathAtom(new InsetMathPhantom(InsetMathPhantom::vphantom));
 
-       if (MacroTable::globalMacros().has(s))
-               return MathAtom(new MathMacro(s,
-                       MacroTable::globalMacros().get(s).numargs()));
-       //if (MacroTable::localMacros().has(s))
-       //      return MathAtom(new MathMacro(s,
-       //              MacroTable::localMacros().get(s).numargs()));
-
-       //lyxerr << "creating unknown inset '" << s << "'" << endl;
-       return MathAtom(new InsetMathUnknown(s));
+       return MathAtom(new MathMacro(s));
 }