]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/dirmac.cpp
moved win_gtk.h header to wx/gtk/private, it's for internal use only
[wxWidgets.git] / src / mac / carbon / dirmac.cpp
index 979f68a40e18da8724bf6df5e11fe4de796a4b43..52e9a61e0fb3af919c3b7a0d82ca0e6ab4a7c957 100644 (file)
@@ -125,6 +125,7 @@ bool wxDirData::Read(wxString *filename)
     }
 
     wxString name ;
+    wxString lowerfilespec = m_filespec.Lower();
 
     while( noErr == err )
     {
@@ -146,6 +147,7 @@ bool wxDirData::Read(wxString *filename)
             break ;
 
         name = wxMacHFSUniStrToString( &uniname ) ;
+        wxString lowername = name.Lower();
 
         if ( ( name == wxT(".") || name == wxT("..") ) && !(m_flags & wxDIR_DOTDOT) )
             continue;
@@ -167,7 +169,7 @@ bool wxDirData::Read(wxString *filename)
         if ( m_filespec.empty() || m_filespec == wxT("*.*") || m_filespec == wxT("*") )
         {
         }
-        else if ( !wxMatchWild(m_filespec, name , false) )
+        else if ( !wxMatchWild(lowerfilespec, lowername , false) )
         {
             continue ;
         }