From: malaterre Date: Wed, 11 May 2005 17:15:18 +0000 (+0000) Subject: BUG: When Image Position Patient was exactly 0,0,0 the strategy was failing... cannot... X-Git-Tag: Version1.2.bp~724 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=217710fae843b471a83de526cf34c880eb3d8125;p=gdcm.git BUG: When Image Position Patient was exactly 0,0,0 the strategy was failing... cannot remember why I put that test ... --- diff --git a/src/gdcmSerieHelper.cxx b/src/gdcmSerieHelper.cxx index bb7d47eb..4c62a8f0 100644 --- a/src/gdcmSerieHelper.cxx +++ b/src/gdcmSerieHelper.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmSerieHelper.cxx,v $ Language: C++ - Date: $Date: 2005/04/20 22:04:34 $ - Version: $Revision: 1.5 $ + Date: $Date: 2005/05/11 17:15:18 $ + Version: $Revision: 1.6 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -242,11 +242,6 @@ bool SerieHelper::ImagePositionPatientOrdering( GdcmFileList *fileList ) dist += normal[i]*ipp[i]; } - if( dist == 0 ) - { - return false; - } - distlist.push_back( dist ); max = min = dist; @@ -264,11 +259,6 @@ bool SerieHelper::ImagePositionPatientOrdering( GdcmFileList *fileList ) dist += normal[i]*ipp[i]; } - if( dist == 0 ) - { - return false; - } - distlist.push_back( dist ); min = (min < dist) ? min : dist;