[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - svtools/source

Tomaž Vajngerl tomaz.vajngerl at collabora.co.uk
Wed May 25 15:39:08 UTC 2016


 svtools/source/control/ruler.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit ef8c2b12949b33d3fe00018c32cb97a77d1c7388
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
Date:   Tue May 24 11:01:46 2016 +0900

    ruler: close the polygon when drawing indent handle (gtk3, gl)
    
    Change-Id: I9d1d20f889f73c73a1b861485a956a25f743e245
    (cherry picked from commit 17e329e4092a2e49f47452d89fea51eb702d4fd2)
    Reviewed-on: https://gerrit.libreoffice.org/25383
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 1a2d257..21a9cfb 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -801,7 +801,9 @@ void Ruler::ImplDrawIndent(vcl::RenderContext& rRenderContext, const tools::Poly
 
     rRenderContext.SetLineColor(rStyleSettings.GetDarkShadowColor());
     rRenderContext.SetFillColor(bIsHit ? rStyleSettings.GetDarkShadowColor() : rStyleSettings.GetWorkspaceColor());
-    rRenderContext.DrawPolygon(rPoly);
+    tools::Polygon aPolygon(rPoly);
+    aPolygon.Optimize(PolyOptimizeFlags::CLOSE);
+    rRenderContext.DrawPolygon(aPolygon);
 }
 
 void Ruler::ImplDrawIndents(vcl::RenderContext& rRenderContext, long nMin, long nMax, long nVirTop, long nVirBottom)


More information about the Libreoffice-commits mailing list