From 806ad208911bdf1f9a8bf85fa10fe573656dcd04 Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Sat, 20 Feb 2016 15:27:48 -0500 Subject: [PATCH] bug fix --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index 20b2864..247d6b4 100644 --- a/context.go +++ b/context.go @@ -179,10 +179,10 @@ func (dc *Context) MoveTo(x, y float64) { } func (dc *Context) LineTo(x, y float64) { - x, y = dc.TransformPoint(x, y) if len(dc.strokePath) == 0 { dc.MoveTo(x, y) } else { + x, y = dc.TransformPoint(x, y) p := fp(x, y) dc.strokePath.Add1(p) dc.fillPath.Add1(p)