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:28:02 +0000
commit5f287dc7e6e59b61c944d6ab39ab117d19b8179f (patch)
treed762f3ae29162919efba36a2f4489ba0cda49953
parentac95452f211038d9f0959f801ef33ee7a4cad277 (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/13753
-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 6af9a8f64399..c6727324253a 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -2817,7 +2817,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;
@@ -2905,7 +2905,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;
@@ -2943,7 +2943,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;