diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-02-02 18:02:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-05 09:22:44 +0000 |
commit | 31de7888660f551597263413bfdf467aade36680 (patch) | |
tree | f488cec59b2a51e6dfe7f9ed4cdf14ae56653f1a | |
parent | 822b4fdee77c043038150aed7b3c5eefa4249a91 (diff) |
Resolves fdo#87968 : Assertion failed: false rtl_uString_newFromSubString
aNewText already contains the good string so calling copy method is wrong
(same pb for i18n::TransliterationModulesExtra::TITLE_CASE and
i18n::TransliterationModulesExtra::SENTENCE_CASE)
Change-Id: Ifce92f33e98af3a58a70d25da9c60cf3d584a001
Reviewed-on: https://gerrit.libreoffice.org/13724
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index 549441327e85..d721ca3ab8d8 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -2818,7 +2818,7 @@ EditSelection ImpEditEngine::TransliterateText( const EditSelection& rSelection, GetLanguage( EditPaM( pNode, nCurrentStart + 1 ) ), nCurrentStart, nLen, &aOffsets )); - if (aNodeStr != aNewText.copy( nCurrentStart, nLen )) + if (aNodeStr != aNewText) { aChgData.nStart = nCurrentStart; aChgData.nLen = nLen; @@ -2906,7 +2906,7 @@ EditSelection ImpEditEngine::TransliterateText( const EditSelection& rSelection, GetLanguage( EditPaM( pNode, nCurrentStart + 1 ) ), nCurrentStart, nLen, &aOffsets )); - if ( aNodeStr != aNewText.copy( nCurrentStart, nLen )) + if (aNodeStr != aNewText) { aChgData.nStart = nCurrentStart; aChgData.nLen = nLen; @@ -2944,7 +2944,7 @@ EditSelection ImpEditEngine::TransliterateText( const EditSelection& rSelection, Sequence< sal_Int32 > aOffsets; OUString aNewText( aTransliterationWrapper.transliterate( aNodeStr, nLanguage, nCurrentStart, nLen, &aOffsets ) ); - if (aNodeStr != aNewText.copy( nCurrentStart, nLen )) + if (aNodeStr != aNewText) { aChgData.nStart = nCurrentStart; aChgData.nLen = nLen; |