diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-23 16:31:44 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-02-25 06:40:04 +0100 |
commit | 0081a0d9465bf1f26d68cff10f2cfc9a662f8824 (patch) | |
tree | 124ec04c26ffb495671c0a9b6708dfa98093c427 /svx | |
parent | 05bd9ed45d7a985ba7a53d0c122d6dbcd6cb2652 (diff) |
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>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/tbxcolorupdate.cxx | 4 |
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; |