diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-03-07 10:40:42 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2021-03-20 14:10:56 +0100 |
commit | df41967a29c4f8243d1df2d9b23d7c41d4a13819 (patch) | |
tree | a6c5c0f6a3874e551f69e78c39b022b15a925ad6 /sw | |
parent | 9b3ce3a3192eb960341fc0d24423657f0559eff2 (diff) |
sw fr_FR AutoCorrect: fix crash using "Apply and Edit changes"
Bad calling of SvxAutoCorrect::FnAddNonBrkSpace() in French
documents, see tdf#140849 for a similar problem.
Change-Id: I19b964fb8fe437c7f98342a873a456ffded75d82
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112120
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/edit/autofmt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/edit/autofmt.cxx b/sw/source/core/edit/autofmt.cxx index 823c761b6d16..637f507734a4 100644 --- a/sw/source/core/edit/autofmt.cxx +++ b/sw/source/core/edit/autofmt.cxx @@ -2185,7 +2185,7 @@ void SwAutoFormat::AutoCorrect(TextFrameIndex nPos) continue; // do not check further } - if ( m_aFlags.bAddNonBrkSpace ) + if ( m_aFlags.bAddNonBrkSpace && nPos < TextFrameIndex(pText->getLength()) ) { SetRedlineText( STR_AUTOFMTREDL_NON_BREAK_SPACE ); pATst->FnAddNonBrkSpace(aACorrDoc, *pText, sal_Int32(nPos), eLang, bNbspRunNext); |