From: Vadim Zeitlin Date: Tue, 25 Jul 2006 00:23:38 +0000 (+0000) Subject: update from suzumizaki (patch 1522241) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/988bbabbaa09d2bc5e2ddc315173276196e3c519 update from suzumizaki (patch 1522241) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/animateg.cpp b/src/generic/animateg.cpp index dbdc6665d1..f69ba2dd86 100644 --- a/src/generic/animateg.cpp +++ b/src/generic/animateg.cpp @@ -583,7 +583,8 @@ void wxAnimationCtrl::DisposeToBackground() // clear the backing store wxMemoryDC dc; dc.SelectObject(m_backingStore); - DisposeToBackground(dc); + if ( dc.IsOk() ) + DisposeToBackground(dc); } void wxAnimationCtrl::DisposeToBackground(wxDC& dc)