]> Creatis software - gdcm.git/blobdiff - src/gdcmHeader.cxx
Calcul correct (merci, Eric!) de la longueur de chaque Dicom Group
[gdcm.git] / src / gdcmHeader.cxx
index 10f5700dac5c3445f5e847d8d1f4f801d823b978..0ccd21e5cdfb5fb083c5639bd46dc93b2f57b213 100644 (file)
@@ -768,26 +768,6 @@ void gdcmHeader::LoadElementValue(gdcmElValue * ElVal) {
        // pour les elements de Value Multiplicity > 1
        // on aura en fait une serie d'entiers
        
-       // code original
-       
-       //if ( IsAnInteger(ElVal) ) {
-       //      guint32 NewInt;
-       //      if( length == 2 ) {
-       //              NewInt = ReadInt16();
-       //      } else if( length == 4 ) {
-       //
-       //      NewInt = ReadInt32();
-       //      } else
-       //              dbg.Error(true, "LoadElementValue: Inconsistency when reading Int.");
-       //      
-       //      //FIXME: make the following an util fonction
-       //      ostringstream s;
-       //      s << NewInt;
-       //      ElVal->SetValue(s.str());
-       //      return;
-       //}
-
-       // modif proposee. JPR
        // on devrait pouvoir faire + compact (?)
                
        if ( IsAnInteger(ElVal) ) {
@@ -823,8 +803,6 @@ void gdcmHeader::LoadElementValue(gdcmElValue * ElVal) {
                return; 
        }
    
-   
-   
    // FIXME The exact size should be length if we move to strings or whatever
    char* NewValue = (char*)malloc(length+1);
    if( !NewValue) {