]> Creatis software - gdcm.git/blobdiff - src/gdcmFile.cxx
Comments
[gdcm.git] / src / gdcmFile.cxx
index acc5acfae523a4f2e110f0972f1f657e1b244aeb..25831770ad62730f51fdce21eb33cbe0bb920647 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/10/23 15:52:33 $
-  Version:   $Revision: 1.341 $
+  Date:      $Date: 2009/05/19 15:08:36 $
+  Version:   $Revision: 1.344 $
                                                                                 
   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 @@ bool File::GetSpacing(float &xspacing, float &yspacing, float &zspacing)
         }
       else
         {
-        if( mediastoragesopclassuid == sopclassuid )
+        if ( mediastoragesopclassuid == sopclassuid )
           {
           sopclassuid_used = mediastoragesopclassuid;
           }
@@ -502,7 +502,7 @@ bool File::GetSpacing(float &xspacing, float &yspacing, float &zspacing)
           return false;
           }
         }
-      // ok we have now the correc SOP Class UID
+      // ok we have now the correct SOP Class UID
       if( sopclassuid_used == "Enhanced MR Image Storage" )
         {
         SeqEntry *PerframeFunctionalGroupsSequence = GetSeqEntry(0x5200,0x9230);
@@ -1913,12 +1913,13 @@ bool File::AnonymizeFile()
             gdcmWarningMacro( "You cannot 'Anonymize' a SeqEntry ");
             continue;
          }
-
+/*
          if ( dynamic_cast<DataEntry *>(d) )
          {
             gdcmWarningMacro( "To 'Anonymize' a DataEntry, better use AnonymizeNoLoad (FIXME) ");
             continue;
          }
+*/
          else
             SetEntryString ((*it).Value, (*it).Group, (*it).Elem);
       }
@@ -2238,8 +2239,9 @@ bool File::ReadTag(uint16_t testGroup, uint16_t testElem)
    }
    catch ( FormatError )
    {
-      gdcmErrorMacro( "Can not read tag for "
-       << "   We should have found tag ("
+      gdcmErrorMacro( "Can not read tag at 0x(" 
+       << std::hex << positionOnEntry
+       << ").  We should have found tag ("
        << DictEntry::TranslateToKey(testGroup,testElem) << ")"
        ) ;