From 922e8e1f9eca2930ef7cc80cc81faea24f278e85 Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Sat, 20 Feb 2016 18:06:19 -0500 Subject: [PATCH] bug fix --- context.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/context.go b/context.go index 6ba4120..8b010c6 100644 --- a/context.go +++ b/context.go @@ -190,11 +190,11 @@ func (dc *Context) LineTo(x, y float64) { } func (dc *Context) QuadraticTo(x1, y1, x2, y2 float64) { - x1, y1 = dc.TransformPoint(x1, y1) - x2, y2 = dc.TransformPoint(x2, y2) if len(dc.strokePath) == 0 { dc.MoveTo(x1, y1) } else { + x1, y1 = dc.TransformPoint(x1, y1) + x2, y2 = dc.TransformPoint(x2, y2) p1 := fp(x1, y1) p2 := fp(x2, y2) dc.strokePath.Add2(p1, p2)