Crash in vtkChartXY::ClearPlots()
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
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();