summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2016-07-01 14:10:00 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2016-07-07 22:32:38 +0200
commit30fdc46969f3c90c47cddf18d0dde640c8ea280e (patch)
tree710498391b1283c97d4e479371a5d1a7b37ca0e5
parentcb382034b061b4acd4f0fd490f42af34517a7b8d (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 a1bd2ec9e770..bb4394ed6e68 100644
--- a/vcl/unx/generic/gdi/salgdi.cxx
+++ b/vcl/unx/generic/gdi/salgdi.cxx
@@ -829,6 +829,11 @@ bool X11SalGraphics::drawPolyLine(
}
}
+ if(rPolygon.isClosed() && !bNoJoin)
+ {
+ cairo_close_path(cr);
+ }
+
cairo_stroke(cr);
}