From: malaterre Date: Tue, 25 Oct 2005 14:36:30 +0000 (+0000) Subject: BUG: Wow, bcc55 actually did caught this one :) nice X-Git-Tag: OpenJPEG.Version1.2~174 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=8e5be16bcfd2ba5a93e2692d39add1bc7bfedaf8;p=gdcm.git BUG: Wow, bcc55 actually did caught this one :) nice --- diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index da87e9ab..2d76f3f0 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.cxx,v $ Language: C++ - Date: $Date: 2005/10/25 12:41:30 $ - Version: $Revision: 1.293 $ + Date: $Date: 2005/10/25 14:36:30 $ + Version: $Revision: 1.294 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -491,7 +491,7 @@ float File::GetXSpacing() nbValue = entry->GetValueCount(); if( nbValue >= 3 ) xspacing = (float)entry->GetValue(2); - if( nbValue >= 2 ) + else if( nbValue >= 2 ) xspacing = (float)entry->GetValue(1); else xspacing = (float)entry->GetValue(0);