From 4de5f30f72178cac4202aeef61d4d66a504bbee0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrg=20Lehni?= <juerg@scratchdisk.com>
Date: Tue, 18 Dec 2012 14:19:22 +0100
Subject: [PATCH] Improve documentation.

---
 src/path/Path.js    | 2 +-
 src/path/Segment.js | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/path/Path.js b/src/path/Path.js
index 0b58f7e8..97ec542f 100644
--- a/src/path/Path.js
+++ b/src/path/Path.js
@@ -2128,7 +2128,7 @@ statics: {
 	},
 
 	/**
-	 * Returns the rough bounding rectangle of the item that is shure to include
+	 * Returns the rough bounding rectangle of the item that is sure to include
 	 * all of the drawing, including stroke width.
 	 */
 	getRoughBounds: function(segments, closed, style, matrix) {
diff --git a/src/path/Segment.js b/src/path/Segment.js
index 6c6603e1..e8ac6c48 100644
--- a/src/path/Segment.js
+++ b/src/path/Segment.js
@@ -90,8 +90,10 @@ var Segment = this.Segment = Base.extend(/** @lends Segment# */{
 	_changed: function(point) {
 		if (!this._path)
 			return;
-		// Delegate changes to affected curves if they exist
-		var curve = this._path._curves && this.getCurve(), other;
+		// Delegate changes to affected curves if they exist. Check _curves
+		// first to make sure we're not creating it by calling this.getCurve().
+		var curve = this._path._curves && this.getCurve(),
+			other;
 		if (curve) {
 			curve._changed();
 			// Get the other affected curve, which is the previous one for