User correct tolerance in CurveLocation sorting.

This commit is contained in:
Jürg Lehni 2015-08-26 17:06:02 +02:00
parent a099377ac6
commit 86fd33c7d5

View file

@ -315,7 +315,7 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{
statics: {
sort: function(locations) {
var tolerance = 1 - /*#=*/Numerical.TOLERANCE;
var tolerance = /*#=*/Numerical.TOLERANCE;
locations.sort(function compare(l1, l2) {
var curve1 = l1._curve,
curve2 = l2._curve,