https://bugs.documentfoundation.org/show_bug.cgi?id=101740

--- Comment #2 from Julien Nabet <serval2...@yahoo.fr> ---
With this patch, it doesn't crash:
diff --git a/sw/source/core/edit/acorrect.cxx
b/sw/source/core/edit/acorrect.cxx
index afc4d18..82cdd33 100644
--- a/sw/source/core/edit/acorrect.cxx
+++ b/sw/source/core/edit/acorrect.cxx
@@ -163,7 +163,7 @@ bool SwAutoCorrDoc::ReplaceRange( sal_Int32 nPos, sal_Int32
nSourceLength, const

     // text attributes with dummy characters must not be replaced!
     bool bDoReplace = true;
-    sal_Int32 const nLen = rText.getLength();
+    sal_Int32 const nLen = pNd->GetText().getLength();
     for ( sal_Int32 n = 0; n < nLen; ++n )
     {
         sal_Unicode const Char = pNd->GetText()[n + nPos];

but don't know if it's the right fix.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to