]> git.saurik.com Git - wxWidgets.git/commitdiff
flushing upon destruction, hope this won't redraw congestion in old code, see #11930
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 10 Apr 2010 17:47:29 +0000 (17:47 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 10 Apr 2010 17:47:29 +0000 (17:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/dcclient.cpp

index 663640741cd7e5b2c27f969977f85ff032f9954e..4387f6c2a8a0e337db21425537ad5beb776a47c5 100644 (file)
@@ -161,6 +161,8 @@ wxClientDCImpl::wxClientDCImpl( wxDC *owner, wxWindow *window ) :
 
 wxClientDCImpl::~wxClientDCImpl()
 {
+    if( GetGraphicsContext() && GetGraphicsContext()->GetNativeContext() )
+        Flush();
 }
 
 /*