diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-02-14 16:35:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-02-14 17:01:17 +0000 |
commit | ebe10cdf9186fa6b6b1a55194d6a32ff6cbca223 (patch) | |
tree | c92db42aad536814950e4fb70d3ea2258da2087c | |
parent | ca0600f0c9022d631317423ab5a59493b41906ab (diff) |
teach radiogroup loader about custom properties
Change-Id: I318d9bace6f2c6aa9c10a592cb2134ba1c0d914e
-rw-r--r-- | vcl/source/window/builder.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 1f6d7d5f2e75..13251a480263 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -680,7 +680,11 @@ bool VclBuilder::extractGroup(const OString &id, stringmap &rMap) VclBuilder::stringmap::iterator aFind = rMap.find(OString("group")); if (aFind != rMap.end()) { - m_pParserState->m_aGroupMaps.push_back(RadioButtonGroupMap(id, aFind->second)); + OString sID = aFind->second; + sal_Int32 nDelim = sID.indexOf(':'); + if (nDelim != -1) + sID = sID.copy(0, nDelim); + m_pParserState->m_aGroupMaps.push_back(RadioButtonGroupMap(id, sID)); rMap.erase(aFind); return true; } |