Fix CurveLocation#getSegment.

This commit is contained in:
Jonathan Puckey 2011-07-08 18:39:05 +02:00
parent b667a04cb6
commit a0f4371803

View file

@ -53,7 +53,8 @@ CurveLocation = Base.extend(/** @lends CurveLocation# */{
*/
getSegment: function() {
if (!this._segment) {
var parameter = this.getParameter();
var curve = this._curve,
parameter = this.getParameter();
if (parameter == 0) {
this._segment = curve._segment1;
} else if (parameter == 1) {