From 9f4e2e269ca47563c0ea7c02971ba76b401f47d1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 13 Aug 2011 13:54:26 +0000 Subject: [PATCH] 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 --- src/xrc/xh_bttn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ) -- 2.45.2