Commit daea12d9 authored by Mathieu Westphal's avatar Mathieu Westphal

Fix a uninitalized memory in chart matrix

his commit fix a valgrind detected memory bug
of uninitialized memory
parent c7d54635
......@@ -198,7 +198,8 @@ void vtkChartMatrix::SetGutterY(float value)
void vtkChartMatrix::SetSpecificResize(const vtkVector2i& index, const vtkVector2f& resize)
if (this->SpecificResize[index] != resize)
if (this->SpecificResize.find(index) == this->SpecificResize.end() ||
this->SpecificResize[index] != resize)
this->SpecificResize[index] = resize;
this->LayoutIsDirty = true;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment