summaryrefslogtreecommitdiff
path: root/framework/source/uielement/popuptoolbarcontroller.cxx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2017-03-06 00:28:09 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2017-03-06 01:20:16 +0200
commit98a03d9b0d13b8f811ccf8fc1a9b7f9469ed079c (patch)
tree6c9910cece8f25cb1d7d88b399e69190b472d2ce /framework/source/uielement/popuptoolbarcontroller.cxx
parentb398dacbb471913e573e9b0b4cd31d94a9109223 (diff)
tdf#106224 Support extra large savemodified icon
For now just duplicated the large icon in Galaxy, to satisfy the resource compiler. Change-Id: Icf31df0185a1ec7f080d9600b2536bcaa5d0783e
Diffstat (limited to 'framework/source/uielement/popuptoolbarcontroller.cxx')
-rw-r--r--framework/source/uielement/popuptoolbarcontroller.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/framework/source/uielement/popuptoolbarcontroller.cxx b/framework/source/uielement/popuptoolbarcontroller.cxx
index 3fa27a805abf..74ff9da3f400 100644
--- a/framework/source/uielement/popuptoolbarcontroller.cxx
+++ b/framework/source/uielement/popuptoolbarcontroller.cxx
@@ -507,8 +507,12 @@ void SaveToolbarController::updateImage()
}
else if ( m_bModified )
{
- Image aResImage(BitmapEx(eImageType == vcl::ImageType::Size16 ? FwkResId(BMP_SAVEMODIFIED_SMALL) : FwkResId(BMP_SAVEMODIFIED_LARGE)));
- aImage = aResImage;
+ if (eImageType == vcl::ImageType::Size26)
+ aImage = Image(BitmapEx(FwkResId(BMP_SAVEMODIFIED_LARGE)));
+ else if (eImageType == vcl::ImageType::Size32)
+ aImage = Image(BitmapEx(FwkResId(BMP_SAVEMODIFIED_EXTRALARGE)));
+ else
+ aImage = Image(BitmapEx(FwkResId(BMP_SAVEMODIFIED_SMALL)));
}
if ( !aImage )