summaryrefslogtreecommitdiff
path: root/include/drawinglayer
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-12-01 12:39:39 +0100
committerLuboš Luňák <l.lunak@collabora.com>2020-12-01 16:28:59 +0100
commit8601eca3c8573b433933ab59180624d798c6189e (patch)
tree7b56a7200a3db81731e569d4cd8e2ca46fcdda4b /include/drawinglayer
parent4bf54eb22cfe604dc29c4f7e3ffa687324b19636 (diff)
do not unnecessarily explicitly force gradient step count (tdf#138581)
Toolkits usually do not provide the ability to specify gradient steps, which means VCL falls back to its algorithm, which at least with Skia sometimes causes poor results. Change-Id: I35dbf87e77d5ed36d8f257db877135a2a0be2ffe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106971 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'include/drawinglayer')
-rw-r--r--include/drawinglayer/attribute/fillgradientattribute.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drawinglayer/attribute/fillgradientattribute.hxx b/include/drawinglayer/attribute/fillgradientattribute.hxx
index f9d9e2245d9a..50a87a685f1a 100644
--- a/include/drawinglayer/attribute/fillgradientattribute.hxx
+++ b/include/drawinglayer/attribute/fillgradientattribute.hxx
@@ -53,7 +53,7 @@ public:
/// constructors/assignmentoperator/destructor
FillGradientAttribute(GradientStyle eStyle, double fBorder, double fOffsetX, double fOffsetY,
double fAngle, const basegfx::BColor& rStartColor,
- const basegfx::BColor& rEndColor, sal_uInt16 nSteps);
+ const basegfx::BColor& rEndColor, sal_uInt16 nSteps = 0);
FillGradientAttribute();
FillGradientAttribute(const FillGradientAttribute&);
FillGradientAttribute(FillGradientAttribute&&);