Fix a newly introduced bug in drawSegments()

This commit is contained in:
Jürg Lehni 2013-12-08 22:16:27 +01:00
parent 064d632d65
commit 17e4078e3b

View file

@ -2019,7 +2019,7 @@ var Path = PathItem.extend(/** @lends Path# */{
for (var i = 0; i < length; i++)
drawSegment(i);
// Close path by drawing first segment again
if (path._closed)
if (path._closed && length > 0)
drawSegment(0);
}