Mercurial > hg > orthanc
diff OrthancServer/DicomFindQuery.cpp @ 1744:b3de74dec2d5 db-changes
integration mainline->db-changes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 26 Oct 2015 12:30:34 +0100 |
parents | ec66a16aa398 |
children |
line wrap: on
line diff
--- a/OrthancServer/DicomFindQuery.cpp Tue Oct 20 17:39:58 2015 +0200 +++ b/OrthancServer/DicomFindQuery.cpp Mon Oct 26 12:30:34 2015 +0100 @@ -349,9 +349,15 @@ for (std::set<DicomTag>::const_iterator it = tags.begin(); it != tags.end(); ++it) { + const DicomValue& value = mainTags.GetValue(*it); + if (value.IsBinary() || value.IsNull()) + { + return false; + } + Constraints::const_iterator constraint = constraints_.find(*it); if (constraint != constraints_.end() && - !constraint->second->Apply(mainTags.GetValue(*it).AsString())) + !constraint->second->Apply(value.GetContent())) { return false; }