X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9118a24f5263c271c0b36049ba1a1b82c1763f25..66f75561893ea7b4bf429d1882d9cc0407ba932d:/src/osx/carbon/dcclient.cpp diff --git a/src/osx/carbon/dcclient.cpp b/src/osx/carbon/dcclient.cpp index 663640741c..4387f6c2a8 100644 --- a/src/osx/carbon/dcclient.cpp +++ b/src/osx/carbon/dcclient.cpp @@ -161,6 +161,8 @@ wxClientDCImpl::wxClientDCImpl( wxDC *owner, wxWindow *window ) : wxClientDCImpl::~wxClientDCImpl() { + if( GetGraphicsContext() && GetGraphicsContext()->GetNativeContext() ) + Flush(); } /*