X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f25881804583790351480098b50f4ce1b924e697..cdb105516c7934613e22c4ae2b0936ea77ad17ca:/src/xrc/xh_stbmp.cpp diff --git a/src/xrc/xh_stbmp.cpp b/src/xrc/xh_stbmp.cpp index 544b43de9f..b1ccad90f5 100644 --- a/src/xrc/xh_stbmp.cpp +++ b/src/xrc/xh_stbmp.cpp @@ -30,14 +30,11 @@ wxStaticBitmapXmlHandler::wxStaticBitmapXmlHandler() wxObject *wxStaticBitmapXmlHandler::DoCreateResource() { - wxStaticBitmap *bmp = wxStaticCast(m_instance, wxStaticBitmap); - - if (!bmp) - bmp = new wxStaticBitmap; + XRC_MAKE_INSTANCE(bmp, wxStaticBitmap) bmp->Create(m_parentAsWindow, GetID(), - GetBitmap(wxT("bitmap"), GetSize()), + GetBitmap(wxT("bitmap"), wxART_OTHER, GetSize()), GetPosition(), GetSize(), GetStyle(), GetName()); @@ -47,11 +44,7 @@ wxObject *wxStaticBitmapXmlHandler::DoCreateResource() return bmp; } - - bool wxStaticBitmapXmlHandler::CanHandle(wxXmlNode *node) { return IsOfClass(node, wxT("wxStaticBitmap")); } - -