From 6262863d9ffb7bdf6e96f052ced97fa00c2fb685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 15 Jan 2016 16:35:48 +0100 Subject: [PATCH] Use correct segment index boundaries in Path#smooth(). --- 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 660ab0f6..bfb98c26 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -2080,7 +2080,7 @@ var Path = PathItem.extend(/** @lends Path# */{ // while ranges on open paths stay within the path's open range. return Numerical.clamp(index < 0 && closed ? index % length - : index < 0 ? index + length : index, 0, length); + : index < 0 ? index + length : index, 0, length - 1); } var opts = options || {},