From 054356c78dafc9b0af8fa28385c4034700af6e6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 7 Dec 2013 16:16:04 +0100 Subject: [PATCH] Fix drawing of closed path with only one segment. --- src/path/Path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/Path.js b/src/path/Path.js index 32591dd9..58e4dfc4 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -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); }