Skip to content
Snippets Groups Projects
Commit daea12d9 authored by Mathieu Westphal (Kitware)'s avatar Mathieu Westphal (Kitware) :zap:
Browse files

Fix a uninitalized memory in chart matrix

his commit fix a valgrind detected memory bug
of uninitialized memory
parent c7d54635
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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