summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-01 19:26:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-01 19:26:14 +0000
commit3f1682f3c2f1605331bcf2f5df079a3f585e4ace (patch)
treea0c89990f4a61b09b975166aea7b07bca4ccc7b6
parent2056f93f2d9f62741045e2aee0ed4d31001febef (diff)
check internal children against prefix rather than equality
Change-Id: I972a0fb4eb86dcafa230f82251d3f9c3cbed7f2b
-rw-r--r--vcl/source/window/builder.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 2301d2119d03..6b4cce44ddb0 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -1867,12 +1867,12 @@ void VclBuilder::handleChild(Window *pParent, xmlreader::XmlReader &reader)
if (VclFrame *pFrameParent = dynamic_cast<VclFrame*>(pParent))
pFrameParent->designate_label(pCurrentChild);
}
- if (sInternalChild.equals("vbox") || sInternalChild.equals("messagedialog-vbox"))
+ if (sInternalChild.startsWith("vbox") || sInternalChild.startsWith("messagedialog-vbox"))
{
if (Dialog *pBoxParent = dynamic_cast<Dialog*>(pParent))
pBoxParent->set_content_area(static_cast<VclBox*>(pCurrentChild));
}
- else if (sInternalChild.equals("action_area") || sInternalChild.equals("messagedialog-action_area"))
+ else if (sInternalChild.startsWith("action_area") || sInternalChild.startsWith("messagedialog-action_area"))
{
Window *pContentArea = pCurrentChild->GetParent();
assert(pContentArea && pContentArea->GetType() == WINDOW_CONTAINER);