]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_factory.C
oh well
[lyx.git] / src / mathed / math_factory.C
index 11d931a7138ea658209783d21d6231d05de49a2a..ec39ab9636a50569b58de84412bcfb5228ea1604 100644 (file)
@@ -52,8 +52,6 @@ MathAtom createMathInset(latexkeys const * l)
                return MathAtom(new MathStackrelInset);
        case LM_TK_UNDERSET:
                return MathAtom(new MathUndersetInset);
-       case LM_TK_KERN: 
-               return MathAtom(new MathKernInset);
        case LM_TK_BINOM:
        case LM_TK_CHOOSE:
                return MathAtom(new MathBinomInset);
@@ -98,10 +96,13 @@ MathAtom createMathInset(string const & s)
                        && s[2] >= '1' && s[2] <= '9')
                return MathAtom(new MathMacroArgument(s[2] - '0'));
 
+       if (s == "kern")
+               return MathAtom(new MathKernInset);
+
        if (s == "xymatrix")
                return MathAtom(new MathXYMatrixInset);
 
-       if (s == "xrightarrow")
+       if (s == "xrightarrow" || s == "xleftarrow")
                return MathAtom(new MathXArrowInset(s));
 
        if (s == "split" || s == "gathered" || s == "aligned")
@@ -117,14 +118,14 @@ MathAtom createMathInset(string const & s)
                return MathAtom(new MathArrayInset(s, 1, 1));
 
        if (s == "pmatrix" || s == "bmatrix" || s == "vmatrix" || s == "Vmatrix" ||
-                 s == "matrix") 
+                 s == "matrix")
                return MathAtom(new MathAMSArrayInset(s));
 
        latexkeys const * l = in_word_set(s);
        if (l)
                return createMathInset(l);
 
-       if (MathMacroTable::has(s)) 
+       if (MathMacroTable::has(s))
                return MathAtom(new MathMacro(s));
 
        //cerr << "creating inset 2 with name: '" << s << "'\n";