diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-04 11:02:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-04 11:03:39 +0100 |
commit | c104e2b661ec840951d39b5889495e2c42ff3d36 (patch) | |
tree | eafb39e6bd6619071f36bbd726dd5b164e164146 /vcl | |
parent | 7c136e7ba27382d5f73454bdf5fa78d0b779e0b7 (diff) |
fix %VARIABLE replacements in item lists
Change-Id: I94f129e26afdac9dc2e0d712c79d73142ced5eee
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/builder.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 0993af93e769..95f07376ed7a 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; } |