]> git.lyx.org Git - lyx.git/blobdiff - src/text3.C
Two fixes involving RtL text drawing
[lyx.git] / src / text3.C
index 5786a51e9728c5482ab5ba14a484dad22c34b040..5718a20136762361bf5ada5949da4777f81c62c0 100644 (file)
@@ -1254,7 +1254,7 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
                        int const nargs = s1.empty() ? 0 : convert<int>(s1);
                        string const s2 = token(s, ' ', 2);
                        string const type = s2.empty() ? "newcommand" : s2;
-                       cur.insert(new MathMacroTemplate(token(s, ' ', 0), nargs, s2));
+                       cur.insert(new MathMacroTemplate(token(s, ' ', 0), nargs, type));
                        //cur.nextInset()->edit(cur, true);
                }
                break;