diff options
author | David Tardon <dtardon@redhat.com> | 2016-05-06 13:05:26 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-05-09 07:13:57 +0200 |
commit | 11bf96474f79eeb952d4cc36b1bf033f0569e350 (patch) | |
tree | 1d55e8dc191efe93c07371aa5f69947a6598d60e /sd | |
parent | e21611090147943e78c6d7a3a7080a9a97c54bf0 (diff) |
use existing function
Change-Id: I130e701902a22016cd06649e1c9ba3d932d64e1c
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/controller/displaymodecontroller.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sd/source/ui/controller/displaymodecontroller.cxx b/sd/source/ui/controller/displaymodecontroller.cxx index 749ce71cf10d..8e8b6b9ff99a 100644 --- a/sd/source/ui/controller/displaymodecontroller.cxx +++ b/sd/source/ui/controller/displaymodecontroller.cxx @@ -162,12 +162,10 @@ DisplayModeToolbarMenu::DisplayModeToolbarMenu( DisplayModeController& rControll appendEntry( -1, aTitle1 ); appendEntry( 1, mpDisplayModeSet1 ); - mpDisplayModeSet2 = VclPtr<ValueSet>::Create( this, WB_TABSTOP | WB_MENUSTYLEVALUESET | WB_FLATVALUESET | WB_NOBORDER | WB_NO_DIRECTSELECT ); + mpDisplayModeSet2 = createEmptyValueSetControl(); mpDisplayModeSet2->SetSelectHdl( LINK( this, DisplayModeToolbarMenu, SelectValueSetHdl ) ); mpDisplayModeSet2->SetColCount( nColCount ); - mpDisplayModeSet2->EnableFullItemMode( false ); - mpDisplayModeSet2->SetColor( GetControlBackground() ); fillLayoutValueSet( mpDisplayModeSet2, &mastermodes[0] ); |