[LyX/master] Fix bug #12373

Jean-Marc Lasgouttes lasgouttes at lyx.org
Fri Sep 24 08:23:55 UTC 2021


Le 24/09/2021 à 09:56, Enrico Forestieri a écrit :
> commit 9ae002b69f5ae140448b71f8b41ce8797f328468
> Author: Enrico Forestieri <forenr at lyx.org>
> Date:   Fri Sep 24 10:15:58 2021 +0200
> 
>      Fix bug #12373
>      
>      Do not perform any autocorrection in the presence of a selection.

This was my conclusion too.

JMarc

> ---
>   src/mathed/InsetMathNest.cpp |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp
> index 01719e5..9210886 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;
>   
> 



More information about the lyx-cvs mailing list