diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-04-27 15:20:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-04-27 17:12:08 +0100 |
commit | cd962f121586e84eb7d020643dcf134e7e50a1c8 (patch) | |
tree | 7f6ecbd07cac9fd2c3eb2703935a114ce43ef658 /svx/source/tbxctrls/itemwin.cxx | |
parent | 653a4a659624d52945b9bd40647002cf31085fe0 (diff) |
manually setting drop down size is unnecessary
and can end up with a font size entry in the toolbar
of a different height to the other elements, because
the other ones only call it on DataChange, while
font size calls it all the time.
Change-Id: I495e28dd0d33a093869fd731538e43513a7b8b85
Diffstat (limited to 'svx/source/tbxctrls/itemwin.cxx')
-rw-r--r-- | svx/source/tbxctrls/itemwin.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/svx/source/tbxctrls/itemwin.cxx b/svx/source/tbxctrls/itemwin.cxx index 92a017f4c25f..449cb7f951dc 100644 --- a/svx/source/tbxctrls/itemwin.cxx +++ b/svx/source/tbxctrls/itemwin.cxx @@ -51,8 +51,6 @@ using namespace ::com::sun::star::util; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::beans; -#define LOGICAL_EDIT_HEIGHT 12 - SvxLineBox::SvxLineBox( vcl::Window* pParent, const Reference< XFrame >& rFrame, WinBits nBits ) : LineLB( pParent, nBits ), nCurPos ( 0 ), @@ -235,8 +233,6 @@ void SvxLineBox::DataChanged( const DataChangedEvent& rDCEvt ) (rDCEvt.GetFlags() & AllSettingsFlags::STYLE) ) { SetSizePixel(LogicToPixel(aLogicalSize, MAP_APPFONT)); - Size aDropSize( aLogicalSize.Width(), LOGICAL_EDIT_HEIGHT); - SetDropDownSizePixel(LogicToPixel(aDropSize, MAP_APPFONT)); } LineLB::DataChanged( rDCEvt ); |