MantisBT - VTK
View Issue Details
0010802VTK(No Category)public2010-06-08 12:362013-04-05 20:13
Eric Monson 
Marcus Hanwell (old account) 
normalminoralways
closedfixed 
 
 
0010802: Crash in vtkChartXY::ClearPlots()
In my tests, a call to vtkChartXY::ClearPlots() crashes. This patch seems to fix it for me:

diff --git a/Charts/vtkChartXY.cxx b/Charts/vtkChartXY.cxx
index a106752..e439da0 100644
--- a/Charts/vtkChartXY.cxx
+++ b/Charts/vtkChartXY.cxx
@@ -805,6 +805,7 @@ void vtkChartXY::ClearPlots()
 {
   for (unsigned int i = 0; i < this->ChartPrivate->plots.size(); ++i)
     {
+ this->RemovePlotFromConers(this->ChartPrivate->plots[i]);
     this->ChartPrivate->plots[i]->Delete();
     }
   this->ChartPrivate->plots.clear();
No tags attached.
Issue History
2010-06-08 12:36Eric MonsonNew Issue
2010-06-08 16:48Marcus Hanwell (old account)Note Added: 0020946
2010-06-08 16:48Marcus Hanwell (old account)Statusbacklog => @80@
2010-06-08 16:48Marcus Hanwell (old account)Resolutionopen => fixed
2010-06-08 16:48Marcus Hanwell (old account)Assigned To => Marcus Hanwell (old account)
2011-01-13 17:00Source_changeset_attached => VTK master a2bd8391
2011-01-13 17:00Source_changeset_attached => VTK master 020ef709
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2013-04-05 20:13Berk GeveciStatuscustomer review => closed

Notes
(0020946)
Marcus Hanwell (old account)   
2010-06-08 16:48   
Fixed in commit 172e357, I think it is more efficient to clear the four corners too, and so modified the supplied patch a little. Thanks for the feedback, please let me know if this does not fix your issue.