X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/27b1df435f11bde2531ee4e8d432eba0b6c74161..2e25e7b7629b9c362d1fc689b536032a35441b8c:/contrib/src/plot/plot.cpp?ds=sidebyside 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()