]> Creatis software - gdcm.git/commitdiff
BUG: 0,0,0,0,0,0 was a really bad default value
authormalaterre <malaterre>
Fri, 25 Nov 2005 03:26:41 +0000 (03:26 +0000)
committermalaterre <malaterre>
Fri, 25 Nov 2005 03:26:41 +0000 (03:26 +0000)
src/gdcmFile.cxx

index 57b1ba6a5f08e014aa90103bd661b3e3702339ae..e752e2a796d0916d5dee1c27fdf3196f32e284b5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/22 20:28:33 $
-  Version:   $Revision: 1.306 $
+  Date:      $Date: 2005/11/25 03:26:41 $
+  Version:   $Revision: 1.307 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -777,7 +777,8 @@ bool File::GetImageOrientationPatient( float iop[6] )
 {
    std::string strImOriPat;
    //iop is supposed to be float[6]
-   iop[0] = iop[1] = iop[2] = iop[3] = iop[4] = iop[5] = 0.;
+   iop[0] = iop[4] = 1.;
+   iop[1] = iop[2] = iop[3] = iop[5] = 0.;
 
    // 0020 0037 DS REL Image Orientation (Patient)
    if ( (strImOriPat = GetEntryString(0x0020,0x0037)) != GDCM_UNFOUND )