comparison 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
comparison
equal deleted inserted replaced
4262:9a01e0f89b6d 4263:61a2bedbae80
208 208
209 try 209 try
210 { 210 {
211 if (index.LookupMetadata(s, instanceId, MetadataType_Instance_IndexInSeries)) 211 if (index.LookupMetadata(s, instanceId, MetadataType_Instance_IndexInSeries))
212 { 212 {
213 indexInSeries_ = boost::lexical_cast<size_t>(s); 213 indexInSeries_ = boost::lexical_cast<size_t>(Toolbox::StripSpaces(s));
214 hasIndexInSeries_ = true; 214 hasIndexInSeries_ = true;
215 } 215 }
216 } 216 }
217 catch (boost::bad_lexical_cast&) 217 catch (boost::bad_lexical_cast&)
218 { 218 {