drawinglayer/source/processor2d/vclpixelprocessor2d.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit aae1f31d969904c53d129684d40a9ff5174e56c4
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Mon May 18 15:56:44 2020 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Mon May 18 21:18:07 2020 +0200

    Only transform polypolygon when needed
    
    Change-Id: I907c4bddb1ec05a9d68af8939e58d576714a3d0a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94283
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx 
b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx
index 0e74fe9bf2aa..131e51f34913 100644
--- a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx
@@ -502,11 +502,10 @@ void 
VclPixelProcessor2D::processPolyPolygonGradientPrimitive2D(
     if (!aLocalPolyPolygon.count())
         return;
 
-    aLocalPolyPolygon.transform(maCurrentTransformation);
-
     if (aStartColor == aEndColor)
     {
         // no gradient at all, draw as polygon in AA and non-AA case
+        aLocalPolyPolygon.transform(maCurrentTransformation);
         mpOutputDevice->SetLineColor();
         mpOutputDevice->SetFillColor(Color(aStartColor));
         mpOutputDevice->DrawPolyPolygon(aLocalPolyPolygon);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to