summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2016-07-01 14:10:00 +0200
committerArmin Le Grand <Armin.Le.Grand@cib.de>2016-07-07 16:35:36 +0200
commit0223781c3fa4f73985cf7aec58924f91c8963a75 (patch)
treec34b32ac086afcf8863df7c2e082141acd36d951
parent80d0a759e66201ac38d82f01787a68322a8b560c (diff)
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
-rw-r--r--vcl/unx/generic/gdi/salgdi.cxx5
1 files changed, 5 insertions, 0 deletions
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);
}