diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2020-05-18 15:56:44 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-05-18 21:18:07 +0200 |
commit | aae1f31d969904c53d129684d40a9ff5174e56c4 (patch) | |
tree | 967e824651699bdb39472f16effaeeb596748736 /drawinglayer/source | |
parent | 01bdd3a8d17b53c4b953b074dbcd262a125527d8 (diff) |
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@collabora.com>
Diffstat (limited to 'drawinglayer/source')
-rw-r--r-- | drawinglayer/source/processor2d/vclpixelprocessor2d.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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); |