]> Creatis software - gdcm.git/blobdiff - src/gdcmDocument.cxx
Comment out strangr code nad replace by simpler one.
[gdcm.git] / src / gdcmDocument.cxx
index 093dd0a31b11d6236edac93839a6abdfd5b5259f..c784c14d8b4d0d287cb3093c74e00f02a85060cc 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/03 16:08:07 $
-  Version:   $Revision: 1.285 $
+  Date:      $Date: 2005/10/11 14:38:05 $
+  Version:   $Revision: 1.287 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -1355,6 +1355,7 @@ return newEntry;
  * \brief   Loads (or not) the element content depending if its length exceeds
  *          or not the value specified with Document::SetMaxSizeLoadEntry()
  * @param   entry Header Entry (Dicom Element) to be dealt with
+ * @param forceLoad whether you want to force loading of 'long' elements
  */
 void Document::LoadDocEntry(DocEntry *entry, bool forceLoad)
 {
@@ -1514,15 +1515,19 @@ void Document::LoadDocEntry(DocEntry *entry, bool forceLoad)
          return;
       }
 
-      if ( vr == "UI" )
-      {
-         // Because of correspondance with the VR dic
-         valEntry->SetValue(newValue);
-      }
-      else
-      {
-         valEntry->SetValue(newValue);
-      }
+//      if ( vr == "UI" )
+//      {
+//         // Because of correspondance with the VR dic
+//         valEntry->SetValue(newValue);
+//      }
+//      else
+//      {
+//         valEntry->SetValue(newValue);
+//      }
+
+// Anybody remembers the genesis of strange previous (commented out) code?
+      valEntry->SetValue(newValue);
+
    }
    else
    {