summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-04-09 02:54:19 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-04-09 07:49:06 +0200
commit437a45c90c3776ace431bbda9539b1166ca0b11f (patch)
treeacd16e0ebc2a01022298f77cb9ec7b38f9284250 /sc/source
parent6c34c5ff469b4bee0aa165d660e6db4431ff0fe7 (diff)
improve the rendering of databar gradients
Change-Id: Ie4a0e1b9193ca1fe230e8a0a69bef757d442fbee Reviewed-on: https://gerrit.libreoffice.org/36311 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/view/output.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx
index 943b4af8fe0e..f896179a6066 100644
--- a/sc/source/ui/view/output.cxx
+++ b/sc/source/ui/view/output.cxx
@@ -857,6 +857,7 @@ void drawDataBars(vcl::RenderContext& rRenderContext, const ScDataBarInfo* pOldD
{
rRenderContext.SetLineColor(pOldDataBarInfo->maColor);
Gradient aGradient(GradientStyle::Linear, pOldDataBarInfo->maColor, COL_TRANSPARENT);
+ aGradient.SetSteps(255);
if(pOldDataBarInfo->mnLength < 0)
aGradient.SetAngle(2700);