[Libreoffice-commits] core.git: vcl/source
Caolán McNamara
caolanm at redhat.com
Thu Jul 4 03:04:03 PDT 2013
vcl/source/window/builder.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit c104e2b661ec840951d39b5889495e2c42ff3d36
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Jul 4 11:02:34 2013 +0100
fix %VARIABLE replacements in item lists
Change-Id: I94f129e26afdac9dc2e0d712c79d73142ced5eee
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 0993af9..95f0737 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -2034,6 +2034,12 @@ std::vector<OString> VclBuilder::handleItems(xmlreader::XmlReader &reader, const
if (!bTranslated)
sValue = OString(name.begin, name.length);
+ if (m_pStringReplace)
+ {
+ OUString sTmp = (*m_pStringReplace)(OStringToOUString(sValue, RTL_TEXTENCODING_UTF8));
+ sValue = OUStringToOString(sTmp, RTL_TEXTENCODING_UTF8);
+ }
+
aItems.push_back(sValue);
++nItemIndex;
}
More information about the Libreoffice-commits
mailing list