X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c1d2aa29cdfa5da6a04186d7fb2949fa6ef3861..d27d59fb91131222207a535b43ef67babfd03ee9:/src/xrc/xh_bmp.cpp?ds=sidebyside diff --git a/src/xrc/xh_bmp.cpp b/src/xrc/xh_bmp.cpp index 8ac3a6982d..aef57ea0f1 100644 --- a/src/xrc/xh_bmp.cpp +++ b/src/xrc/xh_bmp.cpp @@ -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)