]> Creatis software - gdcm.git/blobdiff - vtk/vtkGdcmReader.cxx
ENH: Temporarily add jmemsrc. Patch suggest by Jean Michel Rouet, it enhance the...
[gdcm.git] / vtk / vtkGdcmReader.cxx
index 538462a6f348d680e43ca6055910ff8d4ebb5653..584305bcebb3b4a66b685c567227178a90232bba 100644 (file)
@@ -58,7 +58,7 @@
 #include <vtkPointData.h>
 #include <vtkLookupTable.h>
 
-vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.58 $");
+vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.61 $");
 vtkStandardNewMacro(vtkGdcmReader);
 
 //-----------------------------------------------------------------------------
@@ -214,7 +214,7 @@ void vtkGdcmReader::ExecuteInformation()
       else if ( ImageType == "32U" )
       {
          vtkDebugMacro(<< "32 bits unsigned image");
-         vtkDebugMacro("WARNING: forced to signed int !");
+         vtkDebugMacro(<< "WARNING: forced to signed int !");
          this->SetDataScalarTypeToInt();
       }
       else if ( ImageType == "32S" )
@@ -460,10 +460,10 @@ int vtkGdcmReader::CheckFileCoherence()
           && (type != "16U") && (type != "16S")
           && (type != "32U") && (type != "32S") )
       {
-         vtkErrorMacro(<< "Bad File Type for file" << filename->c_str());
-         vtkErrorMacro(<< "                      " << type.c_str());
-         vtkErrorMacro(<< "Removing this file from readed files "
-                        << filename->c_str());
+         vtkErrorMacro(<< "Bad File Type for file " << filename->c_str() << "\n"
+                       << "   File type found : " << type.c_str() 
+                       << " (might be 8U, 8S, 16U, 16S, 32U, 32S) \n"
+                       << "   Removing this file from readed files");
          *filename = "GDCM_UNREADABLE";
          continue;
       }