diff --git a/src/layers/legacy/medVtkInria/vtkImageView/vtkImage2DDisplay.cpp b/src/layers/legacy/medVtkInria/vtkImageView/vtkImage2DDisplay.cpp index a538d0c7d0..c8280a5eda 100644 --- a/src/layers/legacy/medVtkInria/vtkImageView/vtkImage2DDisplay.cpp +++ b/src/layers/legacy/medVtkInria/vtkImageView/vtkImage2DDisplay.cpp @@ -58,7 +58,7 @@ void vtkImage2DDisplay::SetInputData(vtkImageData *pi_poVtkImage) } else { - m_sVtkImageInfo = medVtkImageInfo(); + memset(reinterpret_cast(&m_sVtkImageInfo), 0, sizeof(m_sVtkImageInfo)); } } diff --git a/src/layers/legacy/medVtkInria/vtkImageView/vtkImage3DDisplay.cpp b/src/layers/legacy/medVtkInria/vtkImageView/vtkImage3DDisplay.cpp index 3c5586f6e2..5fe591c4f8 100644 --- a/src/layers/legacy/medVtkInria/vtkImageView/vtkImage3DDisplay.cpp +++ b/src/layers/legacy/medVtkInria/vtkImageView/vtkImage3DDisplay.cpp @@ -52,7 +52,7 @@ void vtkImage3DDisplay::SetInputData(vtkImageData *pi_poVtkImage) } else { - m_sVtkImageInfo = medVtkImageInfo(); + memset(reinterpret_cast(&m_sVtkImageInfo), 0, sizeof(m_sVtkImageInfo)); } }