summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-15 17:03:15 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-15 17:10:25 +0900
commitf6e2c4eb4a934dc36c5467cf2c7c8ecc05f2814a (patch)
treea3ab6d148cfe152c90ae548a9cf43ffe5beb3970 /vcl
parent208616be2ca7cd17558db463e25e75b73d1bcc00 (diff)
cleanup Control::ImplInitSettings
Change-Id: Ifb10da3006aa2b546945dec4ba76660c4b3f052f
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/ctrl.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/source/control/ctrl.cxx b/vcl/source/control/ctrl.cxx
index fb0020e3c971..e74dc8fe6821 100644
--- a/vcl/source/control/ctrl.cxx
+++ b/vcl/source/control/ctrl.cxx
@@ -422,22 +422,22 @@ void Control::ImplInitSettings( const bool _bFont, const bool _bForeground )
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
- if ( _bFont )
+ if (_bFont)
{
- Font aFont( GetCanonicalFont( rStyleSettings ) );
- if ( IsControlFont() )
- aFont.Merge( GetControlFont() );
+ Font aFont(GetCanonicalFont(rStyleSettings));
+ if (IsControlFont())
+ aFont.Merge(GetControlFont());
SetZoomedPointFont( aFont );
}
- if ( _bForeground || _bFont )
+ if (_bForeground || _bFont)
{
Color aColor;
- if ( IsControlForeground() )
+ if (IsControlForeground())
aColor = GetControlForeground();
else
- aColor = GetCanonicalTextColor( rStyleSettings );
- SetTextColor( aColor );
+ aColor = GetCanonicalTextColor(rStyleSettings);
+ SetTextColor(aColor);
SetTextFillColor();
}
}