diff OrthancServer/Sources/SliceOrdering.cpp @ 4263:61a2bedbae80

sanitize IndexInSeries (we've seen spaces there !)
author Alain Mazy <alain@mazy.be>
date Fri, 30 Oct 2020 10:35:49 +0100
parents d962a2996637
children d9473bd5ed43
line wrap: on
line diff
--- a/OrthancServer/Sources/SliceOrdering.cpp	Fri Oct 30 09:00:24 2020 +0100
+++ b/OrthancServer/Sources/SliceOrdering.cpp	Fri Oct 30 10:35:49 2020 +0100
@@ -210,7 +210,7 @@
       {
         if (index.LookupMetadata(s, instanceId, MetadataType_Instance_IndexInSeries))
         {
-          indexInSeries_ = boost::lexical_cast<size_t>(s);
+          indexInSeries_ = boost::lexical_cast<size_t>(Toolbox::StripSpaces(s));
           hasIndexInSeries_ = true;
         }
       }