diff options
author | Luke Deller <luke@deller.id.au> | 2016-09-14 23:53:33 +1000 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2016-10-19 06:30:22 +0000 |
commit | 834809dbbef60de6677b80e26753c55c4edf96c2 (patch) | |
tree | 0eec3310807b45aef30535aa6470a8ff59f338a6 /vcl/source/font | |
parent | dcb1fbef204ebe7b0a6ccdf70630aa217a8d0e94 (diff) |
Avoid AskConfig when setting font family
Avoid calling the expensive ImplFont::AskConfig from Font::SetFamily
as we are just going to overwrite the font family anyway.
It looks like this crept in accidentally in the recent refactor
commit e418d1a9c87ce01b75141f92dc249c7fb1a1bdcb
Change-Id: I12a9bde77ffcc81f03c37ce400c59ea3a9acac31
Reviewed-on: https://gerrit.libreoffice.org/28901
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'vcl/source/font')
-rw-r--r-- | vcl/source/font/font.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/font/font.cxx b/vcl/source/font/font.cxx index c608fafbab44..df0f89165f68 100644 --- a/vcl/source/font/font.cxx +++ b/vcl/source/font/font.cxx @@ -124,7 +124,7 @@ void Font::SetFontSize( const Size& rSize ) void Font::SetFamily( FontFamily eFamily ) { - if( mpImplFont->GetFamilyType() != eFamily ) + if( mpImplFont->GetFamilyTypeNoAsk() != eFamily ) mpImplFont->SetFamilyType( eFamily ); } |