]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch to reset pointer
authorJulian Smart <julian@anthemion.co.uk>
Thu, 31 Jan 2002 21:27:53 +0000 (21:27 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 31 Jan 2002 21:27:53 +0000 (21:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/plot/plot.cpp

index 1ed90f76ac495f51a79206eb91d00960283fdbfd..0e210f7b2fa160a6a811ec994a07f32468150ded 100644 (file)
@@ -840,6 +840,8 @@ void wxPlotWindow::Delete( wxPlotCurve* curve )
     
     m_area->DeleteCurve( curve );
     m_area->Refresh( FALSE );
+
+    if (curve == m_current) m_current = (wxPlotCurve *) NULL;
 }
 
 wxPlotCurve *wxPlotWindow::GetCurrent()