diff --git a/src/xrc/xh_bttn.cpp b/src/xrc/xh_bttn.cpp index 963efd0848..926b6849b9 100644 --- a/src/xrc/xh_bttn.cpp +++ b/src/xrc/xh_bttn.cpp @@ -54,7 +54,7 @@ wxObject *wxButtonXmlHandler::DoCreateResource() if ( GetParamNode("bitmap") ) { wxDirection dir; - const wxString dirstr = GetParamValue("direction"); + const wxString dirstr = GetParamValue("bitmapposition"); if ( dirstr.empty() || dirstr == "wxLEFT" ) dir = wxLEFT; else if ( dirstr == "wxRIGHT" )