Delete wxDC object when exiting from wxPropertyGrid::OnPaint

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Artur Wieczorek
2015-01-02 16:15:52 +00:00
parent 5662e86b61
commit e622cc3f18

View File

@@ -1860,7 +1860,10 @@ void wxPropertyGrid::OnPaint( wxPaintEvent& WXUNUSED(event) )
// Don't paint after destruction has begun
if ( !HasInternalFlag(wxPG_FL_INITIALIZED) )
{
delete dcPtr;
return;
}
// Find out where the window is scrolled to
int vx,vy; // Top left corner of client