X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathNest.cpp;h=9210886d221c6b5eae932197dc8be352418f61a0;hb=9ae002b69f5ae140448b71f8b41ce8797f328468;hp=01719e50f7c81d0440847f5e1dc2ef78e10b6ae1;hpb=dd947300bc6365650ed61a7aa3e7c1be2245ed41;p=features.git diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index 01719e50f7..9210886d22 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -1666,7 +1666,7 @@ void InsetMathNest::lfunMouseRelease(Cursor & cur, FuncRequest & cmd) bool InsetMathNest::interpretChar(Cursor & cur, char_type const c) { // try auto-correction - if (lyxrc.autocorrection_math && cur.pos() != 0 + if (lyxrc.autocorrection_math && cur.pos() != 0 && !cur.selection() && math_autocorrect(cur, c)) return true;