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

Caolán McNamara caolanm at redhat.com
Tue Oct 24 16:20:48 UTC 2017


 drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit b184a8734f0abd7fd2b1d450a4119ecbaca41589
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Oct 20 15:24:29 2017 +0100

    Resolves: tdf#49253 set an initial mask background
    
    the gif in question has gif disposal mode "previous" set
    on the first frame
    
    Change-Id: I5234b0bd810af9e8e858dabac373fc4651dbb52e
    Reviewed-on: https://gerrit.libreoffice.org/43613
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx
index 6d4e1ba14f8c..ba0a4705be00 100644
--- a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx
+++ b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx
@@ -101,6 +101,10 @@ namespace drawinglayer
 
                     maVirtualDevice->Erase();
                     maVirtualDeviceMask->Erase();
+                    const ::tools::Rectangle aRect(Point(0, 0), aTarget);
+                    maVirtualDeviceMask->SetFillColor(COL_BLACK);
+                    maVirtualDeviceMask->SetLineColor();
+                    maVirtualDeviceMask->DrawRect(aRect);
                 }
             }
 


More information about the Libreoffice-commits mailing list