Mercurial > hg > orthanc
changeset 3512:4bced7d1ec20
in /ordered-slices route, ignore instances without position/normal/seriesIndex
author | amazy |
---|---|
date | Wed, 04 Sep 2019 18:23:22 +0200 |
parents | 6b61ba835964 |
children | 7db879b014ff 97a3631ca689 |
files | NEWS OrthancServer/SliceOrdering.cpp |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS Tue Sep 03 10:34:26 2019 +0200 +++ b/NEWS Wed Sep 04 18:23:22 2019 +0200 @@ -11,7 +11,7 @@ * Fix generation of "SOP Instance UID" on split and merge * Orthanc Explorer: include the url search params into HTTP headers to the Rest API to ease usage of the Authorization plugin Note that only the 'token', 'auth-token' & 'authorization' search params are transmitted into HTTP headers. - +* in /ordered-slices route, ignore instances without position/normal/seriesIndex Version 1.5.7 (2019-06-25) ==========================
--- a/OrthancServer/SliceOrdering.cpp Tue Sep 03 10:34:26 2019 +0200 +++ b/OrthancServer/SliceOrdering.cpp Wed Sep 04 18:23:22 2019 +0200 @@ -310,7 +310,11 @@ for (std::list<std::string>::const_iterator it = instancesId.begin(); it != instancesId.end(); ++it) { - instances_.push_back(new Instance(index_, *it)); + std::auto_ptr<Instance> instance(new Instance(index_, *it)); + if (instance->HasPosition() || instance->HasNormal() || instance->HasIndexInSeries()) + { + instances_.push_back(instance.release()); + } } }