summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-02-02 18:02:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-01-05 20:27:24 +0000
commit9a779652a28d538184eb7fd8f4117ae9882feab9 (patch)
tree34f532b0014c94cc8be092157214dbedbd252583
parent8656ea837f75b199aefab727ccb77f4ae209037c (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> (cherry picked from commit 31de7888660f551597263413bfdf467aade36680) Reviewed-on: https://gerrit.libreoffice.org/13754
-rw-r--r--editeng/source/editeng/impedit4.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index fd11281ce858..41ae0cc45be8 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -2819,7 +2819,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;
@@ -2907,7 +2907,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;
@@ -2945,7 +2945,7 @@ EditSelection ImpEditEngine::TransliterateText( const EditSelection& rSelection,
Sequence< sal_Int32 > aOffsets;
OUString aNewText( aTranslitarationWrapper.transliterate( aNodeStr, nLanguage, nCurrentStart, nLen, &aOffsets ) );
- if (aNodeStr != aNewText.copy( nCurrentStart, nLen ))
+ if (aNodeStr != aNewText)
{
aChgData.nStart = nCurrentStart;
aChgData.nLen = nLen;