Fix drawing of closed path with only one segment.

This commit is contained in:
Jürg Lehni 2013-12-07 16:16:04 +01:00
parent f166b08257
commit 054356c78d

View file

@ -2018,7 +2018,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 && length > 1)
if (path._closed)
drawSegment(0);
}