only flush a client dc if it was not inheriting the native CGContextRef from an outside paint context, fixes #16334

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@78356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2015-01-08 14:11:05 +00:00
parent c489816251
commit a2d8746ba7

View File

@@ -174,7 +174,7 @@ wxClientDCImpl::wxClientDCImpl( wxDC *owner, wxWindow *window ) :
wxClientDCImpl::~wxClientDCImpl() wxClientDCImpl::~wxClientDCImpl()
{ {
if( GetGraphicsContext() && GetGraphicsContext()->GetNativeContext() ) if( GetGraphicsContext() && GetGraphicsContext()->GetNativeContext() && !m_release )
Flush(); Flush();
} }