fixed a canonical example of Stupid Bug(tm)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -101,8 +101,8 @@ wxObject *wxToolBarXmlHandler::DoCreateResource()
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
@@ -101,8 +101,8 @@ wxObject *wxToolBarXmlHandler::DoCreateResource()
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user