summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-01-18 11:06:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-01-18 11:49:17 +0100
commit41b8b8c5ede634774851b438a4c823962c14b611 (patch)
tree32f01359c625aefc0a2c73e7d2969b6fda98f49b /sc
parentcc7712ba4c70c035cbf080c5cf2f2eb6f9fe3eb1 (diff)
use Image(OUString) instead of Image(Bitmap(OUString))
which benefits LOOL since we can delay creating the image until we know the dpi setting of the display we are going to write to. Change-Id: I4c16fd221f7ec3693e37bacf3fdf7026a8c2e8bc Reviewed-on: https://gerrit.libreoffice.org/66574 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/cctrl/checklistmenu.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index 72aa34c6bc91..337fad93bf62 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -1098,15 +1098,12 @@ void ScCheckListMenuWindow::packWindow()
float fScaleFactor = GetDPIScaleFactor();
- BitmapEx aSingleSelectBmp(RID_BMP_SELECT_CURRENT);
- if (fScaleFactor > 1)
- aSingleSelectBmp.Scale(fScaleFactor, fScaleFactor, BmpScaleFlag::Fast);
- Image aSingleSelect(aSingleSelectBmp);
+ ;
getSectionPosSize(aPos, aSize, BTN_SINGLE_SELECT);
maBtnSelectSingle->SetPosSizePixel(aPos, aSize);
maBtnSelectSingle->SetQuickHelpText(ScResId(STR_BTN_SELECT_CURRENT));
- maBtnSelectSingle->SetModeImage(aSingleSelect);
+ maBtnSelectSingle->SetModeImage(Image(RID_BMP_SELECT_CURRENT));
maBtnSelectSingle->SetClickHdl( LINK(this, ScCheckListMenuWindow, ButtonHdl) );
maBtnSelectSingle->Show();