diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-07-02 09:15:24 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-07-02 09:15:24 +0000 |
commit | e4ffb45293c244302e3383b3959174403dcf507b (patch) | |
tree | 8af353ab08083dc1c702039bdaf53d16ff23ead8 /vcl/unx | |
parent | dc776315c9ce00c830258f6abb76db8d054a0c40 (diff) |
INTEGRATION: CWS vcl90 (1.51.54); FILE MERGED
2008/06/03 16:53:10 pl 1.51.54.1: #i57260# find ppd key case insensitive
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/source/gdi/salprnpsp.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/source/gdi/salprnpsp.cxx b/vcl/unx/source/gdi/salprnpsp.cxx index c1b4e05238bb..965fb2f10209 100644 --- a/vcl/unx/source/gdi/salprnpsp.cxx +++ b/vcl/unx/source/gdi/salprnpsp.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: salprnpsp.cxx,v $ - * $Revision: 1.52 $ + * $Revision: 1.53 $ * * This file is part of OpenOffice.org. * @@ -149,7 +149,7 @@ static Paper getPaperType( const String& rPaperName ) ByteString aPaper( rPaperName, RTL_TEXTENCODING_ISO_8859_1 ); for( unsigned int i = 0; i < sizeof( aPaperTab )/sizeof( aPaperTab[0] ); i++ ) { - if( ! strcmp( aPaper.GetBuffer(), aPaperTab[i].name ) ) + if( ! rtl_str_compareIgnoreAsciiCase( aPaper.GetBuffer(), aPaperTab[i].name ) ) return aPaperTab[i].paper; } return PAPER_USER; @@ -776,7 +776,7 @@ BOOL PspSalInfoPrinter::SetData( aPaper = String( ByteString( aPaperTab[ pJobSetup->mePaperFormat ].name ), RTL_TEXTENCODING_ISO_8859_1 ); } pKey = aData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "PageSize" ) ) ); - pValue = pKey ? pKey->getValue( aPaper ) : NULL; + pValue = pKey ? pKey->getValueCaseInsensitive( aPaper ) : NULL; if( ! ( pKey && pValue && aData.m_aContext.setValue( pKey, pValue, false ) == pValue ) ) return FALSE; } |