[Libreoffice-commits] core.git: sc/source

Markus Mohrhard markus.mohrhard at googlemail.com
Sun Apr 9 05:49:26 UTC 2017


 sc/source/ui/view/output.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 437a45c90c3776ace431bbda9539b1166ca0b11f
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sun Apr 9 02:54:19 2017 +0200

    improve the rendering of databar gradients
    
    Change-Id: Ie4a0e1b9193ca1fe230e8a0a69bef757d442fbee
    Reviewed-on: https://gerrit.libreoffice.org/36311
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

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);


More information about the Libreoffice-commits mailing list