summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-05-19 17:49:37 +0200
committerThomas Arnhold <thomas@arnhold.org>2013-05-19 17:51:13 +0200
commit79e5615fa103a52ce41ed682b624c13fd9a9d1eb (patch)
treecbf555fc9b7ddd1a47139de1c091f78ad92f0492 /vcl
parent5a6ed660ec74e445a827c7aa41e4793c64a46271 (diff)
fix OUString conversion
Both were EqualsIgnoreCaseAscii before. Fixes 7d1f4cdec307bb1e761bb5dd3d8231bba5833e10 and 754fee5d1b6adcc04b58a834c84568585afd728a. Thanks to Julien pointing this out :) Change-Id: I1a1983b642ca5b49a76f4e238a9eeb78e8234e9e
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/outdev3.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
index 6a0bbc2baa23..6744597767cd 100644
--- a/vcl/source/gdi/outdev3.cxx
+++ b/vcl/source/gdi/outdev3.cxx
@@ -755,11 +755,11 @@ bool PhysicalFontFace::IsBetterMatch( const FontSelectPattern& rFSD, FontMatchSt
int nMatch = 0;
const OUString& rFontName = rFSD.maTargetName;
- if( rFontName == GetFamilyName() )
+ if( rFontName == GetFamilyName() || rFontName.equalsIgnoreAsciiCase( GetFamilyName() ) )
nMatch += 240000;
if( rStatus.mpTargetStyleName
- && GetStyleName() == rStatus.mpTargetStyleName )
+ && GetStyleName().equalsIgnoreAsciiCase( rStatus.mpTargetStyleName ) )
nMatch += 120000;
if( (rFSD.GetPitch() != PITCH_DONTKNOW) && (rFSD.GetPitch() == GetPitch()) )