diff options
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/classes/resource.src | 5 | ||||
-rw-r--r-- | framework/source/uielement/popuptoolbarcontroller.cxx | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/framework/source/classes/resource.src b/framework/source/classes/resource.src index 745e10e5c8c7..0d3b02dd1f55 100644 --- a/framework/source/classes/resource.src +++ b/framework/source/classes/resource.src @@ -214,4 +214,9 @@ Bitmap BMP_SAVEMODIFIED_LARGE File = "savemodified_large.png"; }; +Bitmap BMP_SAVEMODIFIED_EXTRALARGE +{ + File = "savemodified_extralarge.png"; +}; + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 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 ) |