]> git.saurik.com Git - wxWidgets.git/commitdiff
update from suzumizaki (patch 1522241)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 25 Jul 2006 00:23:38 +0000 (00:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 25 Jul 2006 00:23:38 +0000 (00:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/animateg.cpp

index dbdc6665d180108e15aaa500d94331bcb82ddb61..f69ba2dd86936eca5fcdfa1455de0cbf0e15efe8 100644 (file)
@@ -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)