Permalink
Browse files

Fix logic for out of range detection.

  • Loading branch information...
knowuh committed Apr 17, 2012
1 parent 87040a4 commit 21324e0f33c25e2334b2ad25bbd63431bc7e601c
Showing with 2 additions and 2 deletions.
  1. +1 −1 browser/js/converter.js
  2. +1 −1 src/author/slope_tool_sequence.coffee
View
@@ -1226,7 +1226,7 @@ require.define("/author/slope_tool_sequence.js", function (require, module, expo
if (max == null) max = this.xMax;
if (min == null) min = this.xMin;
return {
- criterion: ["or", ["<=", ["coord", axis, pointName], min], [">=", ["coord", axis, pointName], max]],
+ criterion: ["or", ["<", ["coord", axis, pointName], min], [">", ["coord", axis, pointName], max]],
step: dest
};
};
@@ -43,7 +43,7 @@ exports.SlopeToolSequence = class SlopeToolSequence
point_not_in_range: (dest, pointName=@firstPoint.name, axis='x', max=@xMax, min=@xMin) ->
{
- criterion: [ "or", [ "<=", [ "coord", axis, pointName ], min ], [ ">=", [ "coord", axis, pointName ], max ] ]
+ criterion: [ "or", [ "<", [ "coord", axis, pointName ], min ], [ ">", [ "coord", axis, pointName ], max ] ]
step: dest
}

0 comments on commit 21324e0

Please sign in to comment.