svx/source/tbxctrls/tbxcolorupdate.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 0081a0d9465bf1f26d68cff10f2cfc9a662f8824 Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Fri Feb 23 16:31:44 2018 +0200 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 <c...@libreoffice.org> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits