View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010802VTK(No Category)public2010-06-08 12:362013-04-05 20:13
ReporterEric Monson 
Assigned ToMarcus Hanwell (old account) 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0010802: Crash in vtkChartXY::ClearPlots()
DescriptionIn 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();
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0020946)
Marcus Hanwell (old account) (developer)
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.

 Issue History
Date Modified Username Field Change
2010-06-08 12:36 Eric Monson New Issue
2010-06-08 16:48 Marcus Hanwell (old account) Note Added: 0020946
2010-06-08 16:48 Marcus Hanwell (old account) Status backlog => @80@
2010-06-08 16:48 Marcus Hanwell (old account) Resolution open => fixed
2010-06-08 16:48 Marcus Hanwell (old account) Assigned To => Marcus Hanwell (old account)
2011-01-13 17:00 Source_changeset_attached => VTK master a2bd8391
2011-01-13 17:00 Source_changeset_attached => VTK master 020ef709
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2013-04-05 20:13 Berk Geveci Status customer review => closed


Copyright © 2000 - 2018 MantisBT Team