Resolve question about wether last segment should be included in join or not.

This commit is contained in:
Jürg Lehni 2011-05-06 00:14:09 +01:00
parent 3e3e519bfe
commit 20cf32d599

View file

@ -326,8 +326,7 @@ var Path = this.Path = PathItem.extend({
if (first1._point.equals(last2._point)) {
first1.setHandleIn(last2._handleIn);
// Prepend all segments from path except last one
// TODO: Test if -1 (== all) or -2 (as described by comment)
this._add(segments.slice(0, segments.length - 2), 0);
this._add(segments.slice(0, segments.length - 1), 0);
} else {
this._add(segments.slice(0));
}