[Libreoffice-commits] core.git: drawinglayer/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Mon May 18 19:18:42 UTC 2020
drawinglayer/source/processor2d/vclpixelprocessor2d.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit aae1f31d969904c53d129684d40a9ff5174e56c4
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Mon May 18 15:56:44 2020 +0200
Commit: Mike Kaganski <mike.kaganski at 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.kaganski at 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);
More information about the Libreoffice-commits
mailing list