X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FVTKTestReadSeq.cxx;h=e7a35127ca01dd11a3b69dea9586d8ee37ea125f;hb=b19adc9e0168b80e420811c89a93dc114493033c;hp=ea92d8900e129b41aebab0022a31deb652b3cf96;hpb=587eff0d2fdea1b61c4cc9aa21f06f2ba8b42c10;p=gdcm.git diff --git a/Testing/VTKTestReadSeq.cxx b/Testing/VTKTestReadSeq.cxx index ea92d890..e7a35127 100644 --- a/Testing/VTKTestReadSeq.cxx +++ b/Testing/VTKTestReadSeq.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: VTKTestReadSeq.cxx,v $ Language: C++ - Date: $Date: 2005/01/25 11:25:32 $ - Version: $Revision: 1.6 $ + Date: $Date: 2005/02/02 10:05:26 $ + Version: $Revision: 1.8 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -34,9 +34,9 @@ #define vtkFloatingPointType float #endif -int VTKReadSeqTest(vtkTesting *t,vtkImageViewer *viewer, - std::string const & filename, - std::string const & referenceFileName) +int VTKReadSeqTest(vtkTesting *t, vtkImageViewer *viewer, + std::string const &filename, + std::string const &referenceFileName) { int retVal = 0; //by default this is an error @@ -63,7 +63,8 @@ int VTKReadSeqTest(vtkTesting *t,vtkImageViewer *viewer, delete[] newFileDcm; reader->Update(); - double *range = reader->GetOutput()->GetScalarRange(); + double range[2]; + reader->GetOutput()->GetScalarRange(range); // Show if( viewer )