diff options
author | Richard Stöckl <richard.stoeckl@aon.at> | 2019-08-28 20:38:00 +0200 |
---|---|---|
committer | Richard Stöckl <richard.stoeckl@aon.at> | 2019-08-28 20:38:00 +0200 |
commit | a915207ea990b8fe8a380595d6eeeeb26022604b (patch) | |
tree | 7f08cbf217dfacfaa9d8fa69b71cb63cc9cef995 | |
parent | 409472296c9a05767ffb4478f1b9690ca75139d3 (diff) |
set new coordinates on z instruction
-rw-r--r-- | svgwrite.go | 1 |
1 files changed, 1 insertions, 0 deletions
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) } |