summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-23 16:31:44 +0200
committerTomaž Vajngerl <quikee@gmail.com>2018-02-25 06:40:04 +0100
commit0081a0d9465bf1f26d68cff10f2cfc9a662f8824 (patch)
tree124ec04c26ffb495671c0a9b6708dfa98093c427
parentforcepoint #8 ensure ColumnDef lifetime (diff)
downloadcore-0081a0d9465bf1f26d68cff10f2cfc9a662f8824.tar.gz
core-0081a0d9465bf1f26d68cff10f2cfc9a662f8824.zip
tdf#115895 - Color picker images missing in Impress
VirtualDevice does not have an alpha channel by default. Change-Id: I4eebd7a23546a77dc9df2e2dad12d37eec4560ef Reviewed-on: https://gerrit.libreoffice.org/50248 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r--svx/source/tbxctrls/tbxcolorupdate.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbxcolorupdate.cxx b/svx/source/tbxctrls/tbxcolorupdate.cxx
index 4b8048059a3f..00efa3cdab35 100644
--- a/svx/source/tbxctrls/tbxcolorupdate.cxx
+++ b/svx/source/tbxctrls/tbxcolorupdate.cxx
@@ -22,6 +22,7 @@
#include <svx/svxids.hrc>
#include <svx/xdef.hxx>
+#include <vcl/svapp.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/virdev.hxx>
#include <vcl/settings.hxx>
@@ -85,7 +86,8 @@ namespace svx
if (!aItemSize.Width() || !aItemSize.Height())
return;
- ScopedVclPtr<VirtualDevice> pVirDev(VclPtr<VirtualDevice>::Create());
+ ScopedVclPtr<VirtualDevice> pVirDev(VclPtr<VirtualDevice>::Create(*Application::GetDefaultDevice(),
+ DeviceFormat::DEFAULT, DeviceFormat::DEFAULT));
pVirDev->SetOutputSizePixel(aItemSize);
maBmpSize = aItemSize;