]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/plot/plot.cpp
wxWindowMSW now eats EVT_CHAR if the key was handled in EVT_KEY_DOWN
[wxWidgets.git] / 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 );
     
     m_area->DeleteCurve( curve );
     m_area->Refresh( FALSE );
+
+    if (curve == m_current) m_current = (wxPlotCurve *) NULL;
 }
 
 wxPlotCurve *wxPlotWindow::GetCurrent()
 }
 
 wxPlotCurve *wxPlotWindow::GetCurrent()