X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkDicomRT_StructureSet.cxx;h=8543fb7ddfefac3bbd5392b8a0e3a1f6bbdc18b8;hb=35c2fa30ca32a147048a20d8f812e91c63d9ff57;hp=f0b690f546093837870632630ee30be540a443cc;hpb=573d80d0f7a17607d2ee883c21c940c0ba020282;p=clitk.git diff --git a/common/clitkDicomRT_StructureSet.cxx b/common/clitkDicomRT_StructureSet.cxx index f0b690f..8543fb7 100644 --- a/common/clitkDicomRT_StructureSet.cxx +++ b/common/clitkDicomRT_StructureSet.cxx @@ -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(); //----------------------------------