]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathFactory.cpp
Another assertion that got transformed in 1b1f8dd2
[lyx.git] / src / mathed / MathFactory.cpp
index d2bd2e8cb312c8344af7477880e6b657a8a52baf..bf468e8616b792dd665ccff1829874ab972825a9 100644 (file)
@@ -537,7 +537,14 @@ MathAtom createInsetMath(docstring const & s, Buffer * buf)
        if (s == "ensuremath")
                return MathAtom(new InsetMathEnsureMath(buf));
        if (s == "sideset")
-               return MathAtom(new InsetMathSideset(buf));
+               return MathAtom(new InsetMathSideset(buf, true, true));
+       // The following 3 string values are only for math toolbar use, no LaTeX names
+       if (s == "sidesetr")
+               return MathAtom(new InsetMathSideset(buf, false, true));
+       if (s == "sidesetl")
+               return MathAtom(new InsetMathSideset(buf, true, false));
+       if (s == "sidesetn")
+               return MathAtom(new InsetMathSideset(buf, false, false));
        if (isSpecialChar(s))
                return MathAtom(new InsetMathSpecialChar(s));
        if (s == " ")