From 08a80932cb1fb1e7d94051b4849743e268291bce Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 31 Jan 2002 21:27:53 +0000 Subject: [PATCH] Applied patch to reset pointer git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/plot/plot.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/src/plot/plot.cpp b/contrib/src/plot/plot.cpp index 1ed90f76ac..0e210f7b2f 100644 --- a/contrib/src/plot/plot.cpp +++ b/contrib/src/plot/plot.cpp @@ -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() -- 2.50.0