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;