don't change the case of extensions

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2007-04-10 16:09:30 +00:00
parent e7b54c0721
commit 25fab0dca9

View File

@ -106,7 +106,6 @@ static pascal void NavEventProc(
wxString firstExtension = data->extensions[i].BeforeFirst('|').BeforeFirst(';'); wxString firstExtension = data->extensions[i].BeforeFirst('|').BeforeFirst(';');
wxString extension = firstExtension.AfterLast('.') ; wxString extension = firstExtension.AfterLast('.') ;
extension.MakeLower() ;
wxString sfilename ; wxString sfilename ;
wxMacCFStringHolder cfString( NavDialogGetSaveFileName( ioParams->context ) , false ); wxMacCFStringHolder cfString( NavDialogGetSaveFileName( ioParams->context ) , false );
@ -147,7 +146,7 @@ void MakeUserDataRec(OpenUserDataRec *myData , const wxString& filter )
} }
else else
{ {
myData->extensions.Add( current.MakeUpper() ) ; myData->extensions.Add( current ) ;
++filterIndex ; ++filterIndex ;
} }
@ -166,9 +165,9 @@ void MakeUserDataRec(OpenUserDataRec *myData , const wxString& filter )
if ( current.empty() ) if ( current.empty() )
myData->extensions.Add( myData->name[filterIndex] ) ; myData->extensions.Add( myData->name[filterIndex] ) ;
else else
myData->extensions.Add( current.MakeUpper() ) ; myData->extensions.Add( current ) ;
if ( filterIndex == 0 || isName ) if ( filterIndex == 0 || isName )
myData->name.Add( current.MakeUpper() ) ; myData->name.Add( current ) ;
++filterIndex ; ++filterIndex ;
@ -216,6 +215,7 @@ static Boolean CheckFile( const wxString &filename , OSType type , OpenUserDataR
wxString extension = tokenizer.GetNextToken() ; wxString extension = tokenizer.GetNextToken() ;
if ( extension.GetChar(0) == '*' ) if ( extension.GetChar(0) == '*' )
extension = extension.Mid(1) ; extension = extension.Mid(1) ;
extension.MakeUpper();
if ( file.length() >= extension.length() && extension == file.Right(extension.length() ) ) if ( file.length() >= extension.length() && extension == file.Right(extension.length() ) )
return true ; return true ;