sw/source/core/edit/autofmt.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 8d3092eaea3fba2b96318d09722ca15b75a5b467
Author:     Matt K <matt...@gmail.com>
AuthorDate: Sun Dec 10 12:20:32 2023 -0600
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Dec 11 14:14:44 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>
    Signed-off-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160563

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 '-':

Reply via email to