Mercurial > hg > orthanc-stone
diff Framework/Enumerations.cpp @ 174:a7674c0ae4ac wasm
fix captain rt-dose
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 08 Mar 2018 20:22:47 +0100 |
parents | f19194a11c1d |
children |
line wrap: on
line diff
--- a/Framework/Enumerations.cpp Thu Mar 08 17:58:55 2018 +0100 +++ b/Framework/Enumerations.cpp Thu Mar 08 20:22:47 2018 +0100 @@ -23,13 +23,16 @@ #include <Core/Logging.h> #include <Core/OrthancException.h> +#include <Core/Toolbox.h> namespace OrthancStone { bool StringToSopClassUid(SopClassUid& result, const std::string& source) { - if (source == "1.2.840.10008.5.1.4.1.1.481.2") + std::string s = Orthanc::Toolbox::StripSpaces(source); + + if (s == "1.2.840.10008.5.1.4.1.1.481.2") { result = SopClassUid_RTDose; return true;