diff --git a/imdraw/imdraw.go b/imdraw/imdraw.go index 0a9c904..22d4ce8 100644 --- a/imdraw/imdraw.go +++ b/imdraw/imdraw.go @@ -537,13 +537,16 @@ func (imd *IMDraw) polyline(thickness float64, closed bool) { closing := false if j >= len(points) { - if !closed { + /*if !closed { break - } + }*/ j %= len(points) closing = true } if k >= len(points) { + if !closed { + break + } k %= len(points) }