summaryrefslogtreecommitdiff
path: root/svgwrite.go
diff options
context:
space:
mode:
authorJoe Westcott <joewestcott@users.noreply.github.com>2019-02-04 14:21:12 +0000
committerJoe Westcott <joewestcott@users.noreply.github.com>2019-02-04 14:21:12 +0000
commitf0fc8388f6baa9b9e425e64bcf56dba615ece2c8 (patch)
tree84ad731a86c53571bf507009ad9437a5aab00d14 /svgwrite.go
parent82f8581de0da69bda7696183c7e9d890be24fa63 (diff)
SVG closepath support
Diffstat (limited to 'svgwrite.go')
-rw-r--r--svgwrite.go2
1 files changed, 2 insertions, 0 deletions
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)
}