sw/source/core/edit/autofmt.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit dc8b69e3393d4f71900ea871db5598a5f7af567e Author: Matt K <matt...@gmail.com> AuthorDate: Sun Dec 10 12:20:32 2023 -0600 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Mon Dec 11 05:35:53 2023 +0100 tdf#117651 Fix AutoCorrect support for italic, strike, bold, and underline The previous change for italic had a "break" for "/", but it turns out that code path is hit when trying to "Apply" with slashes around some text, so we just move the "break" inside the check for French language handling. Note that trying "Apply" with this change will crash on a debug build -- there is another fix for that problem in a subsequent change. Change-Id: I4bd76505b3fdfc9f5660eb6ae4a5c5c23e9672ef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160529 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sw/source/core/edit/autofmt.cxx b/sw/source/core/edit/autofmt.cxx index 65324e0eb296..fda00e5dfa4c 100644 --- a/sw/source/core/edit/autofmt.cxx +++ b/sw/source/core/edit/autofmt.cxx @@ -2110,8 +2110,10 @@ void SwAutoFormat::AutoCorrect(TextFrameIndex nPos) SetRedlineText( STR_AUTOFMTREDL_NON_BREAK_SPACE ); if (pATst->FnAddNonBrkSpace(aACorrDoc, *pText, sal_Int32(nPos), eLang, bNbspRunNext)) + { --nPos; - break; + break; + } } [[fallthrough]]; case '-':