summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/source/uielement/subtoolbarcontroller.cxx7
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 );