From 9ae002b69f5ae140448b71f8b41ce8797f328468 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Fri, 24 Sep 2021 10:15:58 +0200 Subject: [PATCH] Fix bug #12373 Do not perform any autocorrection in the presence of a selection. --- src/mathed/InsetMathNest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;