summaryrefslogtreecommitdiff
path: root/vcl/generic
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/generic')
-rw-r--r--vcl/generic/fontmanager/fontsubst.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/generic/fontmanager/fontsubst.cxx b/vcl/generic/fontmanager/fontsubst.cxx
index 94dcda14e75a..36c683ded6ff 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( 0 == rFontSelData.maSearchName.compareTo( "starsymbol", 10)
- || 0 == rFontSelData.maSearchName.compareTo( "opensymbol", 10) )
+ if(rFontSelData.maSearchName.startsWith( "starsymbol" )
+ || rFontSelData.maSearchName.startsWith( "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( 0 == rFontSelData.maSearchName.compareTo( "starsymbol", 10)
- || 0 == rFontSelData.maSearchName.compareTo( "opensymbol", 10) )
+ if(rFontSelData.maSearchName.startsWith( "starsymbol" )
+ || rFontSelData.maSearchName.startsWith( "opensymbol" ) )
return false;
const FontSelectPattern aOut = GetFcSubstitute( rFontSelData, rMissingCodes );