From 90b71903aec593d9524eba2fcde711b34bf9ac3f Mon Sep 17 00:00:00 2001 From: legoff laurent Date: Wed, 7 Jan 2015 14:35:09 +0000 Subject: [PATCH] fix issue 33 --- draw2d/curve/arc.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/draw2d/curve/arc.go b/draw2d/curve/arc.go index d96011b..92850e9 100644 --- a/draw2d/curve/arc.go +++ b/draw2d/curve/arc.go @@ -1,9 +1,8 @@ // Copyright 2010 The draw2d Authors. All rights reserved. // created: 21/11/2010 by Laurent Le Goff -package draw2d +package curve import ( - "code.google.com/p/freetype-go/freetype/raster" "math" ) @@ -25,7 +24,7 @@ func SegmentArc(t LineTracer, x, y, rx, ry, start, angle, scale float64) { if (angle < end-da/4) != clockWise { curX = x + math.Cos(end)*rx curY = y + math.Sin(end)*ry - return curX, curY + break; } curX = x + math.Cos(angle)*rx curY = y + math.Sin(angle)*ry