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

Tomaž Vajngerl tomaz.vajngerl at collabora.co.uk
Tue May 24 02:05:15 UTC 2016


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

New commits:
commit 17e329e4092a2e49f47452d89fea51eb702d4fd2
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

diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index aa2bf9d..7e4dbb9 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -795,7 +795,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