mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
Fix error in Path#getLastCurve().
This commit is contained in:
parent
77ad25ffba
commit
c4ede92e81
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ var Path = this.Path = PathItem.extend({
|
|||
|
||||
getLastCurve: function() {
|
||||
var curves = this.getCurves();
|
||||
return curves[curves - 1];
|
||||
return curves[curves.length - 1];
|
||||
},
|
||||
|
||||
// TODO: Consider adding getSubPath(a, b), returning a part of the current
|
||||
|
|
Loading…
Reference in a new issue