X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c1d2aa29cdfa5da6a04186d7fb2949fa6ef3861..07aaf32633ecf18ec3edfbb41793a112914792d0:/src/xrc/xh_bmp.cpp 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)