]> Creatis software - creaImageIO.git/commitdiff
#3164 creaImageIO Bug New Normal - Update ouput vtkImageData in WxSimpleDlg::getVol...
authorEduardo DAVILA <davila@localhost.localdomain>
Wed, 20 Dec 2017 10:18:11 +0000 (11:18 +0100)
committerEduardo DAVILA <davila@localhost.localdomain>
Wed, 20 Dec 2017 10:18:11 +0000 (11:18 +0100)
src/creaImageIOWxSimpleDlg.cpp

index ca984309b7eaf5d5e5cb27d8f3110c929317dd28..49a65a4b675779b92b1457fed506105235feb9d3 100644 (file)
@@ -157,6 +157,8 @@ namespace creaImageIO
 //                     {
                                for (ii=0;ii<size;ii++)
                                {
+                                       outStrGimmick[ii].img->Modified();
+                                       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<vtkImageData*>::iterator it;
@@ -292,7 +295,8 @@ namespace creaImageIO
                result = NULL;  
                } // getImagesSelected().size()!=0
 
-
+                       result->Modified();
+                       result->Update();
                return result;
 
                }