In Path#join, add first segment of second path again at the end after joining, if it was closed.

Closes #249.
This commit is contained in:
Jürg Lehni 2013-06-27 15:43:26 -07:00
parent 0717b33713
commit 2b236a3da8

View file

@ -1201,6 +1201,8 @@ var Path = PathItem.extend(/** @lends Path# */{
this._add(segments.slice());
}
}
if (path.closed)
this._add([segments[0]]);
path.remove();
// Close if they touch in both places
var first1 = this.getFirstSegment();