X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f25881804583790351480098b50f4ce1b924e697..8c3288a7b682794e4c4a60f2b8487627d0f7c1aa:/src/xrc/xh_stbmp.cpp?ds=sidebyside 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")); } - -