]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathNest.cpp
Fix bug #12373
[features.git] / src / mathed / InsetMathNest.cpp
index 01719e50f7c81d0440847f5e1dc2ef78e10b6ae1..9210886d221c6b5eae932197dc8be352418f61a0 100644 (file)
@@ -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;