]> Creatis software - creaImageIO.git/commitdiff
*** empty log message ***
authorFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Fri, 25 Sep 2009 08:01:18 +0000 (08:01 +0000)
committerFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Fri, 25 Sep 2009 08:01:18 +0000 (08:01 +0000)
src2/creaImageIOGimmickView.cpp

index 3e759dd4d5b67382251a843116c95841cf499632..01f868ebc0342048e13961f4da10412843a205fb 100644 (file)
@@ -309,8 +309,8 @@ void GimmickView::ReadImagesNotThreaded(std::vector<vtkImageData*>& s,std::vecto
                        out->SetScalarType(first->GetScalarType());
                        int ext[6];
                        first->GetExtent(ext);
-                       ext[5] = im.size();
-                       out->SetExtent(ext) -1;
+                       ext[5] = im.size()-1;
+                       out->SetExtent(ext);
                        // LG : TODO : Z Spacing  ?
 
                        out->AllocateScalars();