summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-12 16:08:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-12 19:00:00 +0200
commit203e3099c17bf245f8fcd52c32c58d47bd241c2b (patch)
tree805b01deb02d3bc88582fb4812b4d94c94e65d03 /cui
parentf4932d61e52d595156af1f63e9fb4bed18b63254 (diff)
make Bitmap/BitmapEx constructors explicit
and add BitmapEx::operator=(Bitmap const &) Image::Image(Bitmap const &) to lessen the fallout Change-Id: Iff5fab88d167a7be739c370c9933d36c297bc61c Reviewed-on: https://gerrit.libreoffice.org/54162 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/screenshotannotationdlg.cxx4
-rw-r--r--cui/source/tabpages/tppattern.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/screenshotannotationdlg.cxx b/cui/source/dialogs/screenshotannotationdlg.cxx
index 01f14fc446dc..5fe3ed3596d9 100644
--- a/cui/source/dialogs/screenshotannotationdlg.cxx
+++ b/cui/source/dialogs/screenshotannotationdlg.cxx
@@ -386,8 +386,8 @@ IMPL_LINK_NOARG(ScreenshotAnnotationDlg_Impl, saveButtonHandler, Button*, void)
RepaintToBuffer();
// extract Bitmap
- const Bitmap aTargetBitmap(
- mpVirtualBufferDevice->GetBitmap(
+ const BitmapEx aTargetBitmap(
+ mpVirtualBufferDevice->GetBitmapEx(
Point(0, 0),
mpVirtualBufferDevice->GetOutputSizePixel()));
diff --git a/cui/source/tabpages/tppattern.cxx b/cui/source/tabpages/tppattern.cxx
index b073d844bde0..50c2f59b4f18 100644
--- a/cui/source/tabpages/tppattern.cxx
+++ b/cui/source/tabpages/tppattern.cxx
@@ -297,7 +297,7 @@ IMPL_LINK_NOARG(SvxPatternTabPage, ChangePatternHdl_Impl, ValueSet*, void)
{
BitmapColor aBack;
BitmapColor aFront;
- bool bIs8x8(isHistorical8x8(pGraphicObject->GetGraphic().GetBitmap(), aBack, aFront));
+ bool bIs8x8(isHistorical8x8(pGraphicObject->GetGraphic().GetBitmapEx(), aBack, aFront));
m_pLbColor->SetNoSelection();
m_pLbBackgroundColor->SetNoSelection();