From 43c234b0481fe63b8c4823affad066c6362f5068 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sun, 19 May 2013 18:00:39 +0200 Subject: fix OUString conversion Both were CompareIgnoreCaseToAscii( "starsymbol", 10) which is startsWithIgnoreCaseAscii. Fixes 7d1f4cdec307bb1e761bb5dd3d8231bba5833e10 Change-Id: I21e2eb8c578b65d5f0e4181ed64af02ec480463e --- vcl/generic/fontmanager/fontsubst.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vcl/generic') diff --git a/vcl/generic/fontmanager/fontsubst.cxx b/vcl/generic/fontmanager/fontsubst.cxx index 36c683ded6ff..900125baa35f 100644 --- a/vcl/generic/fontmanager/fontsubst.cxx +++ b/vcl/generic/fontmanager/fontsubst.cxx @@ -160,8 +160,8 @@ bool FcPreMatchSubstititution::FindFontSubstitute( FontSelectPattern &rFontSelDa if( rFontSelData.IsSymbolFont() ) return false; // StarSymbol is a unicode font, but it still deserves the symbol flag - if(rFontSelData.maSearchName.startsWith( "starsymbol" ) - || rFontSelData.maSearchName.startsWith( "opensymbol" ) ) + if(rFontSelData.maSearchName.startsWithIgnoreAsciiCase( "starsymbol" ) + || rFontSelData.maSearchName.startsWithIgnoreAsciiCase( "opensymbol" ) ) return false; //see fdo#41556 and fdo#47636 @@ -229,8 +229,8 @@ bool FcGlyphFallbackSubstititution::FindFontSubstitute( FontSelectPattern& rFont if( rFontSelData.IsSymbolFont() ) return false; // StarSymbol is a unicode font, but it still deserves the symbol flag - if(rFontSelData.maSearchName.startsWith( "starsymbol" ) - || rFontSelData.maSearchName.startsWith( "opensymbol" ) ) + if(rFontSelData.maSearchName.startsWithIgnoreAsciiCase( "starsymbol" ) + || rFontSelData.maSearchName.startsWithIgnoreAsciiCase( "opensymbol" ) ) return false; const FontSelectPattern aOut = GetFcSubstitute( rFontSelData, rMissingCodes ); -- cgit