diff options
author | Fyodor Yemelyanenko <fyodor_e@hotmail.com> | 2018-01-10 10:27:08 +1000 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2018-02-15 11:29:15 +0100 |
commit | aff321ae3c872ad881252979c9f10ab1a01c0ea0 (patch) | |
tree | 47912384f8d33e417b23b681220d15bb1ca0c30c /editeng | |
parent | 6561fcc13334b93e886ad392af1515df45a2ae9b (diff) |
tdf#83260 editeng sw: avoid accessing dead nodes in AutoCorrect
When change tracking is ON (Redlining) and Edit->Change Tracking->Show==OFF
Autocorrection and Undo operations crash LO.
Change-Id: I616f2de143b78fc83483a6589cfa1dd1ab61675a
Reviewed-on: https://gerrit.libreoffice.org/47686
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit aac475436271ddeabf6d9a4c3984ba77accf56ce)
Reviewed-on: https://gerrit.libreoffice.org/49794
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 8131483e0241..658e6c619f33 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -1387,7 +1387,7 @@ void SvxAutoCorrect::DoAutoCorrect( SvxAutoCorrDoc& rDoc, const OUString& rTxt, if( IsAutoCorrFlag( ChgToEnEmDash ) ) { - FnChgToEnEmDash( rDoc, rTxt, nCapLttrPos, nEnd, eLang ); + FnChgToEnEmDash( rDoc, aPara, nCapLttrPos, nEnd, eLang ); } } break; |