[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - canvas/source

Thorsten Behrens Thorsten.Behrens at CIB.de
Thu Mar 8 13:44:12 UTC 2018


 canvas/source/vcl/canvashelper_texturefill.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a1b3ae95e35fe0669bcc9df020fa606e6a3cca75
Author: Thorsten Behrens <Thorsten.Behrens at CIB.de>
Date:   Wed Mar 7 22:30:31 2018 +0100

    VCL canvas: fix another clipping mistake (related: tdf#115142)
    
    Follow-up to 5d710cf7dda27e78f237211fd92418be4dd1c551 -
    setupOutDevState() tends to set a clip, better not overwrite that.
    
    Change-Id: I52aa7db3ef12e9c2902016460e1bf4914328dc7c
    Reviewed-on: https://gerrit.libreoffice.org/50920
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    (cherry picked from commit e8ed3dfc35975b9e57da7803168f3e2a117a4004)
    Reviewed-on: https://gerrit.libreoffice.org/50939

diff --git a/canvas/source/vcl/canvashelper_texturefill.cxx b/canvas/source/vcl/canvashelper_texturefill.cxx
index 3a9c1a356c3a..e1cb3105950f 100644
--- a/canvas/source/vcl/canvashelper_texturefill.cxx
+++ b/canvas/source/vcl/canvashelper_texturefill.cxx
@@ -1061,7 +1061,7 @@ namespace vclcanvas
                             const vcl::Region aPolyClipRegion( aPolyPoly );
 
                             rOutDev.Push( PushFlags::CLIPREGION );
-                            rOutDev.SetClipRegion( aPolyClipRegion );
+                            rOutDev.IntersectClipRegion( aPolyClipRegion );
 
                             textureFill( rOutDev,
                                          *pGrfObj,
@@ -1079,7 +1079,7 @@ namespace vclcanvas
                                 OutputDevice& r2ndOutDev( mp2ndOutDev->getOutDev() );
                                 r2ndOutDev.Push( PushFlags::CLIPREGION );
 
-                                r2ndOutDev.SetClipRegion( aPolyClipRegion );
+                                r2ndOutDev.IntersectClipRegion( aPolyClipRegion );
                                 textureFill( r2ndOutDev,
                                              *pGrfObj,
                                              aPt,


More information about the Libreoffice-commits mailing list