diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-05-04 20:12:30 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-04 20:53:15 +0100 |
commit | 742e67453fba6ea540cc6f90ee52414b16543694 (patch) | |
tree | 542e58043b05aebc5658f2388e771a2fa8f4e581 | |
parent | e61ea2d79f96a96314f0135ad6cf820b6ae57b5d (diff) |
extract correct widget id for responses
Change-Id: I5ce14e346b8ee609fdad4deae9929a90cbadd84e
-rw-r--r-- | vcl/source/window/builder.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index cc3919e35e4b..c3e0a7f5b1ee 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -2495,6 +2495,9 @@ void VclBuilder::handleActionWidget(xmlreader::XmlReader &reader) reader.nextItem(xmlreader::XmlReader::TEXT_RAW, &name, &nsId); OString sID = OString(name.begin, name.length); + sal_Int32 nDelim = sID.indexOf(':'); + if (nDelim != -1) + sID = sID.copy(0, nDelim); set_response(sID, sResponse.toInt32()); } |