]> git.saurik.com Git - wxWidgets.git/commitdiff
Allow art provider IDs for the extra bitmaps in a wxBitmapButton. (The
authorRobin Dunn <robin@alldunn.com>
Wed, 17 May 2006 03:51:51 +0000 (03:51 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 17 May 2006 03:51:51 +0000 (03:51 +0000)
param value is empty in this case, but there is still a valid bimap
node.)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/xrc/xh_bmpbt.cpp

index e45d86ad21884fa0584c476d6c6d1f4947c8f040..5bc46413e9ece2369b20ae2977144823dacb6e93 100644 (file)
@@ -49,11 +49,11 @@ wxObject *wxBitmapButtonXmlHandler::DoCreateResource()
         button->SetDefault();
     SetupWindow(button);
 
-    if (!GetParamValue(wxT("selected")).IsEmpty())
+    if (GetParamNode(wxT("selected")))
         button->SetBitmapSelected(GetBitmap(wxT("selected")));
-    if (!GetParamValue(wxT("focus")).IsEmpty())
+    if (GetParamNode(wxT("focus")))
         button->SetBitmapFocus(GetBitmap(wxT("focus")));
-    if (!GetParamValue(wxT("disabled")).IsEmpty())
+    if (GetParamNode(wxT("disabled")))
         button->SetBitmapDisabled(GetBitmap(wxT("disabled")));
 
     return button;