diff --git a/src/common/animatecmn.cpp b/src/common/animatecmn.cpp index 20eba7f317..9e74a365a9 100644 --- a/src/common/animatecmn.cpp +++ b/src/common/animatecmn.cpp @@ -43,7 +43,10 @@ wxIMPLEMENT_DYNAMIC_CLASS(wxAnimation, wxObject); #if !defined(wxHAS_NATIVE_ANIMATIONCTRL) // In this case the "native" ctrl is the generic ctrl. See wx/animate.h - wxIMPLEMENT_CLASS(wxAnimationCtrl, wxControl); + // Notice that it's important to use wxGenericAnimationCtrl here because + // wxAnimation::IsCompatibleWith() relies on control deriving from + // wxGenericAnimationCtrl when using generic wxAnimation implementation. + wxIMPLEMENT_CLASS(wxAnimationCtrl, wxGenericAnimationCtrl); #endif #include "wx/listimpl.cpp"