]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxSpinButton handler (did refer to spinbutton nodename, not wxSpinButton class)
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 22 May 2001 22:03:33 +0000 (22:03 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 22 May 2001 22:03:33 +0000 (22:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/xml/xh_spin.cpp

index 689fe6f21a4baae93269fdad1f84793992b6ec4b..008876cfd13870fc27c4bf3b5880d23dbd4b2360 100644 (file)
@@ -55,7 +55,7 @@ wxObject *wxSpinButtonXmlHandler::DoCreateResource()
 
 bool wxSpinButtonXmlHandler::CanHandle(wxXmlNode *node)
 {
-    return node->GetName() == wxT("spinbutton");
+    return IsOfClass(node, wxT("wxSpinButton"));
 }
 
 #endif // wxUSE_SPINBTN