]> Creatis software - gdcm.git/commitdiff
BUG: Wow, bcc55 actually did caught this one :) nice
authormalaterre <malaterre>
Tue, 25 Oct 2005 14:36:30 +0000 (14:36 +0000)
committermalaterre <malaterre>
Tue, 25 Oct 2005 14:36:30 +0000 (14:36 +0000)
src/gdcmFile.cxx

index da87e9ab9b2fd010ac2a2e53bdbf5dd72b6be98d..2d76f3f0a5e4a38d9ad4734b02a6bd4192e8ff32 100644 (file)
@@ -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);