summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-07 15:47:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-07 16:26:44 +0000
commit1f6e88276006bea5d597ee6ca6fdf3af4dbf5ffd (patch)
treee46b93fc2f430c1cede9bd804f9c60a01ad18caa /vcl
parent59c40f2a86346c5ceb597c6f45ec8752979dc850 (diff)
arrow buttons seem too big
Change-Id: I18b16b445c435cc4685712d9cdac4ad23f333f5a
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/button.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 3086de5cbb40..8a8d12629d26 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -1614,13 +1614,13 @@ Size PushButton::CalcMinimumSize( long nMaxWidth ) const
PushButton::GetText(), ImplGetTextStyle( nDrawFlags ) ).GetSize();
aSize.Width() += textSize.Width();
aSize.Height() = std::max( aSize.Height(), long( textSize.Height() * 1.15 ) );
- }
- // cf. ImplDrawPushButton ...
- if( (GetStyle() & WB_SMALLSTYLE) == 0 )
- {
- aSize.Width() += 24;
- aSize.Height() += 12;
+ // cf. ImplDrawPushButton ...
+ if( (GetStyle() & WB_SMALLSTYLE) == 0 )
+ {
+ aSize.Width() += 24;
+ aSize.Height() += 12;
+ }
}
return CalcWindowSize( aSize );