]> Creatis software - gdcm.git/blobdiff - src/gdcmDicomDir.cxx
New method SerieHelper::AddSeriesDetail() to allow user to specifiy
[gdcm.git] / src / gdcmDicomDir.cxx
index e79743c3492f27a36a65864c95c3bcc33f10cf87..b93876b2f4c27800969e7f388a326836b744dc25 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/12/13 15:08:17 $
-  Version:   $Revision: 1.180 $
+  Date:      $Date: 2005/12/13 16:32:20 $
+  Version:   $Revision: 1.181 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -941,7 +941,8 @@ void DicomDir::SetElement(std::string const &path, DicomDirType type,
                }
                else
                {
-                  val = &(header->GetFileName().c_str()[path.length()+1]);
+                  //val = &(header->GetFileName().c_str()[path.length()+1]);
+                  val = &(header->GetFileName().c_str()[path.length()]);
                }
        break;