From 1d88e73a3f25f16ad845b114153edd603d4970be Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 17 May 2006 03:51:51 +0000 Subject: [PATCH] Allow art provider IDs for the extra bitmaps in a wxBitmapButton. (The 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xrc/xh_bmpbt.cpp b/src/xrc/xh_bmpbt.cpp index e45d86ad21..5bc46413e9 100644 --- a/src/xrc/xh_bmpbt.cpp +++ b/src/xrc/xh_bmpbt.cpp @@ -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; -- 2.47.2