X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDir.cxx;h=f1fd2561784fa24e016817f60594168d37a82ffc;hb=094ef7536b44375cf9d672b025a7edd80f3c339b;hp=9d44e72ffd059bf0158c9edb68b418f52b86796d;hpb=f1d5aef5e0eaa2ef4aacd0354915ffe371fc9866;p=gdcm.git diff --git a/src/gdcmDicomDir.cxx b/src/gdcmDicomDir.cxx index 9d44e72f..f1fd2561 100644 --- a/src/gdcmDicomDir.cxx +++ b/src/gdcmDicomDir.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDir.cxx,v $ Language: C++ - Date: $Date: 2008/02/13 18:53:33 $ - Version: $Revision: 1.197 $ + Date: $Date: 2010/04/09 15:23:40 $ + Version: $Revision: 1.198 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -944,6 +944,8 @@ void DicomDir::SetElements(std::string const &path, VectDocument const &list) { // get the current file characteristics patCurName = (*it)->GetEntryString(0x0010,0x0010); + if (patCurName == "") // to prevent further troubles when wild anonymization was performed + patCurName = "gdcm^Patient"; patCurID = (*it)->GetEntryString(0x0010,0x0011); studCurInstanceUID = (*it)->GetEntryString(0x0020,0x000d); studCurID = (*it)->GetEntryString(0x0020,0x0010);