From 834809dbbef60de6677b80e26753c55c4edf96c2 Mon Sep 17 00:00:00 2001 From: Luke Deller Date: Wed, 14 Sep 2016 23:53:33 +1000 Subject: 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 Reviewed-by: jan iversen --- vcl/source/font/font.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/source/font') 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 ); } -- cgit