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/trunk@76727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2014-06-18 13:05:15 +00:00
parent bd650ec3d9
commit cd27126831

View File

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