From f0fc8388f6baa9b9e425e64bcf56dba615ece2c8 Mon Sep 17 00:00:00 2001 From: Joe Westcott Date: Mon, 4 Feb 2019 14:21:12 +0000 Subject: SVG closepath support --- svgwrite.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'svgwrite.go') diff --git a/svgwrite.go b/svgwrite.go index 04f6cb3..7e455fb 100644 --- a/svgwrite.go +++ b/svgwrite.go @@ -50,6 +50,8 @@ func (f *Fpdf) SVGBasicWrite(sb *SVGBasicType, scale float64) { newX, newY = val(4) f.CurveCubic(x, y, cx0, cy0, newX, newY, cx1, cy1, "D") x, y = newX, newY + case 'Z': + f.Line(x, y, originX, originY) default: f.SetErrorf("Unexpected path command '%c'", seg.Cmd) } -- cgit v1.2.1-24-ge1ad