X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkDicomRT_StructureSet.cxx;h=8543fb7ddfefac3bbd5392b8a0e3a1f6bbdc18b8;hb=35c2fa30ca32a147048a20d8f812e91c63d9ff57;hp=bc9992683cc31804324184223f412a3b50c9867c;hpb=1f2793a945d2ea05308d61d79513de5d664f092f;p=clitk.git diff --git a/common/clitkDicomRT_StructureSet.cxx b/common/clitkDicomRT_StructureSet.cxx index bc99926..8543fb7 100644 --- a/common/clitkDicomRT_StructureSet.cxx +++ b/common/clitkDicomRT_StructureSet.cxx @@ -4,7 +4,7 @@ Authors belongs to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -274,7 +274,12 @@ void clitk::DicomRT_StructureSet::Read(const std::string & filename) mStudyTime = reader.GetValEntry(0x008,0x0020)->GetValue(); mStudyDate = reader.GetValEntry(0x008,0x0030)->GetValue(); mLabel = reader.GetValEntry(0x3006,0x002)->GetValue(); - mName = reader.GetValEntry(0x3006,0x004)->GetValue(); + if (!reader.GetValEntry(0x3006,0x004)) { + mName = "Anonymous"; + } + else { + mName = reader.GetValEntry(0x3006,0x004)->GetValue(); + } mTime = reader.GetValEntry(0x3006,0x009)->GetValue(); //----------------------------------