Mercurial > hg > orthanc
diff OrthancServer/Search/ListConstraint.cpp @ 1754:3a4f7dc00f49 db-changes
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 28 Oct 2015 11:31:58 +0100 |
parents | 99f4a05f39fa |
children | 03b030680e3d |
line wrap: on
line diff
--- a/OrthancServer/Search/ListConstraint.cpp Tue Oct 27 20:31:34 2015 +0100 +++ b/OrthancServer/Search/ListConstraint.cpp Wed Oct 28 11:31:58 2015 +0100 @@ -40,14 +40,14 @@ { if (isCaseSensitive_) { + allowedValues_.insert(value); + } + else + { std::string s = value; Toolbox::ToUpperCase(s); allowedValues_.insert(s); } - else - { - allowedValues_.insert(value); - } } @@ -67,7 +67,7 @@ { std::string v = value; - if (isCaseSensitive_) + if (!isCaseSensitive_) { Toolbox::ToUpperCase(v); }