]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/animateg.cpp
moved assertdlg_gtk.[ch] to GTK_LOWLEVEL_SRC/HDR to fix wxUniv/GTK build
[wxWidgets.git] / 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)