git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11479
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxObject *created = CreateResFromNode(n, toolbar, NULL);
wxControl *control = wxDynamicCast(created, wxControl);
{
wxObject *created = CreateResFromNode(n, toolbar, NULL);
wxControl *control = wxDynamicCast(created, wxControl);
- if (IsOfClass(n, wxT("tool")) &&
- IsOfClass(n, wxT("separator")) &&
+ if (!IsOfClass(n, wxT("tool")) &&
+ !IsOfClass(n, wxT("separator")) &&
control != NULL)
toolbar->AddControl(control);
}
control != NULL)
toolbar->AddControl(control);
}
{
wxObject *created = CreateResFromNode(n, toolbar, NULL);
wxControl *control = wxDynamicCast(created, wxControl);
{
wxObject *created = CreateResFromNode(n, toolbar, NULL);
wxControl *control = wxDynamicCast(created, wxControl);
- if (IsOfClass(n, wxT("tool")) &&
- IsOfClass(n, wxT("separator")) &&
+ if (!IsOfClass(n, wxT("tool")) &&
+ !IsOfClass(n, wxT("separator")) &&
control != NULL)
toolbar->AddControl(control);
}
control != NULL)
toolbar->AddControl(control);
}