Mercurial > hg > orthanc
diff OrthancServer/SliceOrdering.cpp @ 1868:c8877965d67d
More tolerant "/series/.../ordered-slices" with broken series
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 04 Dec 2015 16:18:46 +0100 |
parents | 1ba224001fd0 |
children | 5e7feeb63d1f |
line wrap: on
line diff
--- a/OrthancServer/SliceOrdering.cpp Fri Dec 04 12:45:07 2015 +0100 +++ b/OrthancServer/SliceOrdering.cpp Fri Dec 04 16:18:46 2015 +0100 @@ -320,7 +320,8 @@ if (instances_[i - 1]->GetIndexInSeries() == instances_[i]->GetIndexInSeries()) { // The current "IndexInSeries" occurs 2 times: Not a proper ordering - return false; + LOG(WARNING) << "This series contains 2 slices with the same index, trying to display it anyway"; + break; } }