]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/plot.cpp
Made HelpGen compile here.
[wxWidgets.git] / src / generic / plot.cpp
index 0da3f4ec7950fac6a37592246b2586f8e6498d49..9ca23407bdecf7a288d4f46aeda5e6fecd1c6486 100644 (file)
@@ -630,6 +630,17 @@ void wxPlotWindow::SetCurrent( wxPlotCurve* current )
     GetEventHandler()->ProcessEvent( event );
 }
 
+void wxPlotWindow::Delete( wxPlotCurve* curve )
+{
+    wxNode *node = m_curves.Find( curve );
+    if (!node) return;
+    
+    m_curves.DeleteObject( curve );
+    
+    m_area->DeleteCurve( curve );
+    m_area->Refresh( FALSE );
+}
+
 wxPlotCurve *wxPlotWindow::GetCurrent()
 {
     return m_current;