diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2017-04-26 13:43:47 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2017-04-27 08:58:57 +0300 |
commit | 17026b70731d9285d4d0d053057b0779877d8feb (patch) | |
tree | c4dd72ff70f25973fc9a0c135614d7a70e47301e /framework/source | |
parent | 32680923221e1eec9020c2a21b51125f735e4a32 (diff) |
Use ToolBox::GetImageSize
Change-Id: Iaad0ca0e3957e54f11dfa1687b33b08239451bfb
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/uielement/subtoolbarcontroller.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/framework/source/uielement/subtoolbarcontroller.cxx b/framework/source/uielement/subtoolbarcontroller.cxx index 266ebbab247c..c5b08f190c80 100644 --- a/framework/source/uielement/subtoolbarcontroller.cxx +++ b/framework/source/uielement/subtoolbarcontroller.cxx @@ -284,12 +284,7 @@ void SubToolBarController::updateImage() sal_uInt16 nId = 0; if ( getToolboxId( nId, &pToolBox ) ) { - vcl::ImageType eImageType = vcl::ImageType::Size16; - if (pToolBox->GetToolboxButtonSize() == ToolBoxButtonSize::Large) - eImageType = vcl::ImageType::Size26; - else if (pToolBox->GetToolboxButtonSize() == ToolBoxButtonSize::Size32) - eImageType = vcl::ImageType::Size32; - + vcl::ImageType eImageType = pToolBox->GetImageSize(); Image aImage = vcl::CommandInfoProvider::GetImageForCommand(m_aLastCommand, getFrameInterface(), eImageType); if ( !!aImage ) pToolBox->SetItemImage( nId, aImage ); |