From a915207ea990b8fe8a380595d6eeeeb26022604b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20St=C3=B6ckl?= Date: Wed, 28 Aug 2019 20:38:00 +0200 Subject: set new coordinates on z instruction --- svgwrite.go | 1 + 1 file changed, 1 insertion(+) diff --git a/svgwrite.go b/svgwrite.go index 7045199..398a6da 100644 --- a/svgwrite.go +++ b/svgwrite.go @@ -76,6 +76,7 @@ func (f *Fpdf) SVGBasicWrite(sb *SVGBasicType, scale float64) { y = newY case 'Z': f.Line(x, y, startX, startY) + x, y = startX, startY default: f.SetErrorf("Unexpected path command '%c'", seg.Cmd) } -- cgit v1.2.1-24-ge1ad