]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix bitmap position attribute name in XRC handler.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 13 Aug 2011 13:54:26 +0000 (13:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 13 Aug 2011 13:54:26 +0000 (13:54 +0000)
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

index 963efd0848b238e1f0cabfb868a20eb0ac776f54..926b6849b99e649a69dbb82424b460fcf1f0fd59 100644 (file)
@@ -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" )