X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56d2f75071fc2a29ec10abe97c5a908bb35f30f4..29fd317b4b5f7e9020ebb6f1187c5f8b3c28d5a3:/contrib/src/xml/xh_radbt.cpp diff --git a/contrib/src/xml/xh_radbt.cpp b/contrib/src/xml/xh_radbt.cpp index bdcbfe5925..d8306a034d 100644 --- a/contrib/src/xml/xh_radbt.cpp +++ b/contrib/src/xml/xh_radbt.cpp @@ -28,6 +28,7 @@ wxRadioButtonXmlHandler::wxRadioButtonXmlHandler() : wxXmlResourceHandler() { ADD_STYLE( wxRB_GROUP ); + AddWindowStyles(); } wxObject *wxRadioButtonXmlHandler::DoCreateResource() @@ -58,7 +59,7 @@ wxObject *wxRadioButtonXmlHandler::DoCreateResource() bool wxRadioButtonXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("radiobutton"); + return IsOfClass(node, _T("wxRadioButton")); }