#include "wx/xrc/xh_animatctrl.h"
#include "wx/animate.h"
+#include "wx/scopedptr.h"
IMPLEMENT_DYNAMIC_CLASS(wxAnimationCtrlXmlHandler, wxXmlResourceHandler)
{
XRC_MAKE_INSTANCE(ctrl, wxAnimationCtrl)
+ wxScopedPtr<wxAnimation> animation(GetAnimation(wxT("animation")));
+
ctrl->Create(m_parentAsWindow,
GetID(),
- GetAnimation(wxT("animation")),
+ animation ? *animation : wxNullAnimation,
GetPosition(), GetSize(),
GetStyle(wxT("style"), wxAC_DEFAULT_STYLE),
GetName());