From 0223781c3fa4f73985cf7aec58924f91c8963a75 Mon Sep 17 00:00:00 2001 From: Armin Le Grand Date: Fri, 1 Jul 2016 14:10:00 +0200 Subject: tdf#50613 add close_path to correctly show closed polygons For closed polygons it is essential to add a close_path to correctly show the last line join. Change-Id: Ib6f37bbc5e85133f21a936b186eb0ab12773f7da --- vcl/unx/generic/gdi/salgdi.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx index 5cb18608473a..a92ffd04b43e 100644 --- a/vcl/unx/generic/gdi/salgdi.cxx +++ b/vcl/unx/generic/gdi/salgdi.cxx @@ -802,6 +802,11 @@ bool X11SalGraphics::drawPolyLine( } } + if(rPolygon.isClosed() && !bNoJoin) + { + cairo_close_path(cr); + } + cairo_stroke(cr); } -- cgit v1.2.3