some file collection bug fixing

actorid
Marc Zinnschlag 14 years ago
parent 8829398bfc
commit d9f1b64213

@ -41,9 +41,9 @@ namespace Files
MultiDirCollection::MultiDirCollection (const std::vector<boost::filesystem::path>& directories,
const std::string& extension, bool foldCase)
: mFiles (NameLess (foldCase))
: mFiles (NameLess (!foldCase))
{
NameEqual equal (foldCase);
NameEqual equal (!foldCase);
for (std::vector<boost::filesystem::path>::const_iterator iter = directories.begin();
iter!=directories.end(); ++iter)

@ -27,7 +27,9 @@ namespace Files
char l = std::tolower (left[i]);
char r = std::tolower (right[i]);
if (l>=r)
if (l<r)
return true;
if (l>r)
return false;
}

Loading…
Cancel
Save