From 988bbabbaa09d2bc5e2ddc315173276196e3c519 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 25 Jul 2006 00:23:38 +0000 Subject: [PATCH] update from suzumizaki (patch 1522241) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/animateg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.45.2