]> git.lyx.org Git - lyx.git/blobdiff - src/Text3.cpp
Fix bug 4463. The crash was due to a call to X from inside a child process.
[lyx.git] / src / Text3.cpp
index b90c6c84823d4b39b22b5df30ce604b48b3dee8e..01a2fd671f7f9de86ad3a41abdea645d71b597ab 100644 (file)
@@ -149,6 +149,7 @@ static void mathDispatch(Cursor & cur, FuncRequest const & cmd, bool display)
                // somewhere, and an ordinary formula
                // otherwise
                if (sel.find(from_ascii("\\newcommand")) == string::npos
+                               && sel.find(from_ascii("\\newlyxcommand")) == string::npos
                                && sel.find(from_ascii("\\def")) == string::npos)
                {
                        InsetMathHull * formula = new InsetMathHull;