Mercurial > hg > orthanc
diff OrthancServer/ServerIndex.cpp @ 1754:3a4f7dc00f49 db-changes
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 28 Oct 2015 11:31:58 +0100 |
parents | faf2ecab3472 |
children | 98abb8d7f905 |
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp Tue Oct 27 20:31:34 2015 +0100 +++ b/OrthancServer/ServerIndex.cpp Wed Oct 28 11:31:58 2015 +0100 @@ -2131,6 +2131,8 @@ for (std::list<int64_t>::const_iterator it = tmp.begin(); it != tmp.end(); ++it, pos++) { + assert(db_.GetResourceType(*it) == lookup.GetLevel()); + int64_t instance; if (!Toolbox::FindOneChildInstance(instance, db_, *it, lookup.GetLevel())) {