From 8e5be16bcfd2ba5a93e2692d39add1bc7bfedaf8 Mon Sep 17 00:00:00 2001 From: malaterre Date: Tue, 25 Oct 2005 14:36:30 +0000 Subject: [PATCH] BUG: Wow, bcc55 actually did caught this one :) nice --- src/gdcmFile.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.45.1