Explorar o código

fix set_case_sensitive() and match_files()

David Rose %!s(int64=13) %!d(string=hai) anos
pai
achega
474e26e951
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      dtool/src/dtoolutil/globPattern.cxx

+ 2 - 0
dtool/src/dtoolutil/globPattern.cxx

@@ -115,6 +115,7 @@ match_files(vector_string &results, const Filename &cwd) const {
   }
   }
   
   
   GlobPattern glob(pattern);
   GlobPattern glob(pattern);
+  glob.set_case_sensitive(_case_sensitive);
   return glob.r_match_files(prefix, suffix, results, cwd);
   return glob.r_match_files(prefix, suffix, results, cwd);
 }
 }
 
 
@@ -167,6 +168,7 @@ r_match_files(const Filename &prefix, const string &suffix,
   }
   }
 
 
   GlobPattern next_glob(next_pattern);
   GlobPattern next_glob(next_pattern);
+  next_glob.set_case_sensitive(_case_sensitive);
 
 
   if (!has_glob_characters()) {
   if (!has_glob_characters()) {
     // If there are no special characters in the pattern, it's a
     // If there are no special characters in the pattern, it's a