Skip to content

Commit

Permalink
set new coordinates on z instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
eiskasten committed Aug 28, 2019
1 parent 4094722 commit a915207
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions svgwrite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit a915207

Please sign in to comment.