diff options
author | ricardobotto <andarilho.botto@gmail.com> | 2013-05-18 16:24:19 -0300 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-05-19 07:06:16 +0000 |
commit | 3384f229a4a3812f57bd8864e9c916e6443a4899 (patch) | |
tree | 098ff4857fdb4f33e3f4b247551585278ab3db82 /vcl/generic | |
parent | 977118753c3b4a05701866586136b78a669925c7 (diff) |
Changed compareTo to startsWith
Change-Id: Ia72e220f29c26bdf789bd3f1102b850aafcf525d
Reviewed-on: https://gerrit.libreoffice.org/3956
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'vcl/generic')
-rw-r--r-- | vcl/generic/fontmanager/fontsubst.cxx | 8 |
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 ); |