diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2016-05-24 11:01:46 +0900 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-05-25 15:38:42 +0000 |
commit | ef8c2b12949b33d3fe00018c32cb97a77d1c7388 (patch) | |
tree | 888ed87b9a6c70869a56cf42678981435850d2e3 /svtools/source | |
parent | 18d1be25a4fd3c88e4c9d74b88078810c93614a3 (diff) |
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@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/control/ruler.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx index 1a2d257caf58..21a9cfbc1a17 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) |