[Libreoffice-commits] core.git: svx/source

Noel Grandin noel.grandin at collabora.co.uk
Sun Feb 25 05:40:25 UTC 2018


 svx/source/tbxctrls/tbxcolorupdate.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 0081a0d9465bf1f26d68cff10f2cfc9a662f8824
Author: Noel Grandin <noel.grandin at 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 <ci at libreoffice.org>
    Reviewed-by: Tomaž Vajngerl <quikee at 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;
 


More information about the Libreoffice-commits mailing list