Kaydet (Commit) 0081a0d9 authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Tomaž Vajngerl

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/50248Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
üst 05bd9ed4
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <svx/svxids.hrc> #include <svx/svxids.hrc>
#include <svx/xdef.hxx> #include <svx/xdef.hxx>
#include <vcl/svapp.hxx>
#include <vcl/toolbox.hxx> #include <vcl/toolbox.hxx>
#include <vcl/virdev.hxx> #include <vcl/virdev.hxx>
#include <vcl/settings.hxx> #include <vcl/settings.hxx>
...@@ -85,7 +86,8 @@ namespace svx ...@@ -85,7 +86,8 @@ namespace svx
if (!aItemSize.Width() || !aItemSize.Height()) if (!aItemSize.Width() || !aItemSize.Height())
return; return;
ScopedVclPtr<VirtualDevice> pVirDev(VclPtr<VirtualDevice>::Create()); ScopedVclPtr<VirtualDevice> pVirDev(VclPtr<VirtualDevice>::Create(*Application::GetDefaultDevice(),
DeviceFormat::DEFAULT, DeviceFormat::DEFAULT));
pVirDev->SetOutputSizePixel(aItemSize); pVirDev->SetOutputSizePixel(aItemSize);
maBmpSize = aItemSize; maBmpSize = aItemSize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment