From: Vadim Zeitlin Date: Sat, 13 Aug 2011 13:54:26 +0000 (+0000) Subject: Fix bitmap position attribute name in XRC handler. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9f4e2e269ca47563c0ea7c02971ba76b401f47d1 Fix bitmap position attribute name in XRC handler. Bitmap position attribute was called "bitmapposition" in the documentation and in the code that generated an error message for a wrong value in it but was inexplicably called "direction" in the code that really looked it up. This seems to be just a straight typo from the original r61065. Surprising as it is that it wasn't noticed before, do correct it now. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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" )