summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2016-05-24 11:01:46 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2016-05-24 11:01:46 +0900
commit17e329e4092a2e49f47452d89fea51eb702d4fd2 (patch)
tree4cc20a4884f307524d5bff3278353d1b5b1c59c3 /svtools
parent4ab3149381352c86cb84fc01fe69b2c7929c98fb (diff)
ruler: close the polygon when drawing indent handle (gtk3, gl)
Change-Id: I9d1d20f889f73c73a1b861485a956a25f743e245
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ruler.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index aa2bf9de9a53..7e4dbb9f2bbc 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)