summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000@gmail.com>2013-03-24 01:07:51 +0100
committerZolnai Tamás <zolnaitamas2000@gmail.com>2013-03-24 01:07:51 +0100
commit843b7b614eaf624fcc19535e5d444bb40bc382be (patch)
tree25e41ea0b77da10e2027b7e63298bcf79ff7c854 /l10ntools
parent9a544af808c15a13d8d3a049d647326799485e4a (diff)
qtz length changed, use this length dynamically
Change-Id: I2935ff0c1114f1b3e690fd6f86441a180566fd32
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/lngmerge.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/l10ntools/source/lngmerge.cxx b/l10ntools/source/lngmerge.cxx
index 001ff83b2111..36580440a4ba 100644
--- a/l10ntools/source/lngmerge.cxx
+++ b/l10ntools/source/lngmerge.cxx
@@ -249,7 +249,7 @@ sal_Bool LngParser::Merge(
rtl::OString sNewText;
pEntrys->GetText( sNewText, STRING_TYP_TEXT, sLang, sal_True );
if( sLang == "qtz" )
- sNewText = sNewText.copy(6);
+ sNewText = sNewText.copy(sNewText.indexOf("|") + 2);
if ( !sNewText.isEmpty()) {
rtl::OString *pLine = (*pLines)[ nPos ];
@@ -287,7 +287,7 @@ sal_Bool LngParser::Merge(
rtl::OString sNewText;
pEntrys->GetText( sNewText, STRING_TYP_TEXT, sCur, sal_True );
if( sCur == "qtz" )
- sNewText = sNewText.copy(6);
+ sNewText = sNewText.copy(sNewText.indexOf("|") + 2);
if (( !sNewText.isEmpty()) &&
!(( sCur.equalsL(RTL_CONSTASCII_STRINGPARAM("x-comment"))) && ( sNewText == "-" )))
{