Skip to content

Commit a0f4371

Browse files
committed
Fix CurveLocation#getSegment.
1 parent b667a04 commit a0f4371

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/path/CurveLocation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ CurveLocation = Base.extend(/** @lends CurveLocation# */{
5353
*/
5454
getSegment: function() {
5555
if (!this._segment) {
56-
var parameter = this.getParameter();
56+
var curve = this._curve,
57+
parameter = this.getParameter();
5758
if (parameter == 0) {
5859
this._segment = curve._segment1;
5960
} else if (parameter == 1) {

0 commit comments

Comments
 (0)