diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 43522d7071ed..83a470710727 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -1335,6 +1335,11 @@ SvxAutoCorrect::DoAutoCorrect( SvxAutoCorrDoc& rDoc, const OUString& rTxt, OUString aPara; OUString* pPara = IsAutoCorrFlag(CptlSttSntnc) ? &aPara : 0; + // since LibO 4.1, '-' is a word separator + // fdo#67742 avoid "--" to be replaced by "–" if next is "-" + if( rTxt.getLength() >= 3 && + rTxt.match( OUString("---"), rTxt.getLength()-3 ) ) + break; bool bChgWord = rDoc.ChgAutoCorrWord( nCapLttrPos, nInsPos, *this, pPara ); if( !bChgWord )