Mercurial > hg > orthanc-stone
diff Framework/Toolbox/Slice.cpp @ 625:2eeb5857eb43
DicomInstanceParameters
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 May 2019 18:11:52 +0200 |
parents | b70e9be013e4 |
children | d2c0e347ddc2 |
line wrap: on
line diff
--- a/Framework/Toolbox/Slice.cpp Tue May 07 14:28:10 2019 +0200 +++ b/Framework/Toolbox/Slice.cpp Tue May 07 18:11:52 2019 +0200 @@ -194,20 +194,16 @@ geometry_ = CoordinateSystem3D(position, orientation); bool ok = true; - SopClassUid tmp; - if (StringToSopClassUid(tmp, sopClassUid_)) + switch (StringToSopClassUid(sopClassUid_)) { - switch (tmp) - { - case SopClassUid_RTDose: - type_ = Type_OrthancRawFrame; - ok = ComputeRTDoseGeometry(dataset, frame); - break; + case SopClassUid_RTDose: + type_ = Type_OrthancRawFrame; + ok = ComputeRTDoseGeometry(dataset, frame); + break; - default: - break; - } + default: + break; } if (!ok)