From 11e2ea359bee86f7601ea92cbcf8652a2d956c9a Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 20 Dec 2017 11:18:11 +0100 Subject: [PATCH] #3164 creaImageIO Bug New Normal - Update ouput vtkImageData in WxSimpleDlg::getVolumeSelected --- src/creaImageIOWxSimpleDlg.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/creaImageIOWxSimpleDlg.cpp b/src/creaImageIOWxSimpleDlg.cpp index ca98430..49a65a4 100644 --- a/src/creaImageIOWxSimpleDlg.cpp +++ b/src/creaImageIOWxSimpleDlg.cpp @@ -157,6 +157,8 @@ namespace creaImageIO // { for (ii=0;iiModified(); + outStrGimmick[ii].img->Update(); m_results.push_back(outStrGimmick[ii].img); m_resultsDicomAtr.push_back( outStrGimmick[ii].infos ); } @@ -268,7 +270,8 @@ namespace creaImageIO memcpy(out->GetScalarPointer(0,0,slice), img->GetScalarPointer(0,0,0), imsize); //img->Delete(); } // for slice - + out->Modified(); + out->Update(); //EED This is NOT working. The iteration over the pointer vtkImageData // int slice=0; // std::vector::iterator it; @@ -292,7 +295,8 @@ namespace creaImageIO result = NULL; } // getImagesSelected().size()!=0 - + result->Modified(); + result->Update(); return result; } -- 2.47.1