- std::cout << "Sort list : " << nbFiles << " long" << std::endl;
- s->OrderFileList(l); // sort the list
- // Just to show : GetZSpacing from a gdcm::SerieHelper is right
+ std::cout << "Sort list : " << nbFiles << " long" << std::endl;
+
+ //---------------------------------------------------------
+ s->OrderFileList(l); // sort the list (and compute ZSpacing !)
+ //---------------------------------------------------------
+
+ zspacing = s->GetZSpacing();
+ // Just to show : GetZSpacing from a GDCM_NAME_SPACE::SerieHelper is right