Fix issue in recent Path.Line constructor optimization.

Line paths should not be closed.
This commit is contained in:
Jürg Lehni 2014-03-01 23:40:38 +01:00
parent 4129231504
commit 7dd3bfa2ec

View file

@ -25,7 +25,7 @@ Path.inject({ statics: new function() {
path = new Path(props && props.insert === false && Item.NO_INSERT);
path._add(segments);
// No need to use setter for _closed since _add() called _changed().
path._closed = true;
path._closed = closed;
// Set named arguments at the end, since some depend on geometry to be
// defined (e.g. #clockwise)
return path.set(props);