This commit is contained in:
Michael Fogleman 2016-02-20 15:27:48 -05:00
parent e6644b7b24
commit 806ad20891

View File

@ -179,10 +179,10 @@ func (dc *Context) MoveTo(x, y float64) {
} }
func (dc *Context) LineTo(x, y float64) { func (dc *Context) LineTo(x, y float64) {
x, y = dc.TransformPoint(x, y)
if len(dc.strokePath) == 0 { if len(dc.strokePath) == 0 {
dc.MoveTo(x, y) dc.MoveTo(x, y)
} else { } else {
x, y = dc.TransformPoint(x, y)
p := fp(x, y) p := fp(x, y)
dc.strokePath.Add1(p) dc.strokePath.Add1(p)
dc.fillPath.Add1(p) dc.fillPath.Add1(p)