]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/plot/plot.cpp
always let the multiline text control process the Enter key presses
[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 );
+
+    if (curve == m_current) m_current = (wxPlotCurve *) NULL;
 }
 
 wxPlotCurve *wxPlotWindow::GetCurrent()