From 064f17eaecc661ba5633a01d71fe35a1ed27c920 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrg=20Lehni?= <juerg@scratchdisk.com>
Date: Mon, 13 Jun 2011 19:00:39 +0100
Subject: [PATCH] Fix default value for end in Path#removeSegments(), so the
 last segment gets removed too.

---
 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 e8b3fdd1..92174689 100644
--- a/src/path/Path.js
+++ b/src/path/Path.js
@@ -526,7 +526,7 @@ var Path = this.Path = PathItem.extend({
 	 */
 	removeSegments: function(from, to) {
 		from = from || 0;
-	 	to = Base.pick(to, this._segments.length - 1);
+	 	to = Base.pick(to, this._segments.length);
 		var segments = this._segments,
 			curves = this._curves,
 			last = to >= segments.length,