Skip to content
Snippets Groups Projects
Commit e1d59512 authored by Colin's avatar Colin
Browse files

vtkArcGridActorPrivate.cxx: vector reserve to vector reserve and init

on line 85 there is an error when tests are run with libc++ hardness mode with the debug setting
on line 82 we reserve space for the vector this does not change n though so when
we access it on line 85 there is an error n=0, to fix this we reserve and initalize the vector
parent 5a0129e4
No related branches found
No related tags found
No related merge requests found
......@@ -79,8 +79,7 @@ void vtkArcGridActorPrivate::BuildGrid(vtkViewport* viewport)
const double totalAngle = vtkMath::RadiansFromDegrees(this->Angle);
std::vector<vtkIdType> pids;
pids.reserve(this->Resolution);
std::vector<vtkIdType> pids(this->Resolution);
for (int arc = 0; arc < nbArcs; arc++)
{
pids[0] = polyDataPoints->InsertNextPoint(this->TicksStart->GetPoint(arc));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment