[Libreoffice-commits] core.git: l10ntools/source
Zolnai Tamás
zolnaitamas2000 at gmail.com
Sat Mar 23 17:10:57 PDT 2013
l10ntools/source/lngmerge.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 843b7b614eaf624fcc19535e5d444bb40bc382be
Author: Zolnai Tamás <zolnaitamas2000 at gmail.com>
Date: Sun Mar 24 01:07:51 2013 +0100
qtz length changed, use this length dynamically
Change-Id: I2935ff0c1114f1b3e690fd6f86441a180566fd32
diff --git a/l10ntools/source/lngmerge.cxx b/l10ntools/source/lngmerge.cxx
index 001ff83..3658044 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 == "-" )))
{
More information about the Libreoffice-commits
mailing list