X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvImageReader.txx;h=3a38719c2d4a16eedaed620bccd77ebb3aa58510;hb=6fa2cf3d8bd3e42e5103da3f04f12fc90c671bbd;hp=01fc707ed910373e5b96af38544083e0f7d4b03b;hpb=fccfc9b0a6df74011a09eebe42ee50fc57e764de;p=clitk.git diff --git a/common/vvImageReader.txx b/common/vvImageReader.txx index 01fc707..3a38719 100644 --- a/common/vvImageReader.txx +++ b/common/vvImageReader.txx @@ -139,7 +139,12 @@ void vvImageReader::UpdateWithDimAndInputPixelType() try { if (mType == IMAGEWITHTIME) - mImage=vvImageFromITK(reader->GetOutput(),true); + { + std::cerr << "We should never come here:" << std::endl + << " Calling vvImageReader with multiple images and IMAGEWITHTIME is undefined." << std::endl + << " You are probably looking for MERGEDWITHTIME Type." << std::endl; + return; + } else mImage=vvImageFromITK(reader->GetOutput()); } catch ( itk::ExceptionObject & err ) {