]> git.saurik.com Git - wxWidgets.git/commitdiff
don't use empty attribute name in wxIconXmlHandler too (should have been part of...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 13 May 2009 22:29:11 +0000 (22:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 13 May 2009 22:29:11 +0000 (22:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/xrc/xh_bmp.cpp

index 8ac3a6982da540e7c80a9f789920e77e0aaa8d9b..aef57ea0f115d359da75edbbe3f0c274ea05c47b 100644 (file)
@@ -49,9 +49,7 @@ wxIconXmlHandler::wxIconXmlHandler()
 
 wxObject *wxIconXmlHandler::DoCreateResource()
 {
-    // NB: empty parameter name means "take directly from this node's next
-    //     instead of from subnode with given name"
-    return new wxIcon(GetIcon(wxEmptyString));
+    return new wxIcon(GetIcon(m_node));
 }
 
 bool wxIconXmlHandler::CanHandle(wxXmlNode *node)