mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 14:58:36 +00:00
Fix bug #12373
Do not perform any autocorrection in the presence of a selection.
This commit is contained in:
parent
dd947300bc
commit
9ae002b69f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user