Skip to content

Commit

Permalink
Fixed a couple more issues in segmentQueryFirst
Browse files Browse the repository at this point in the history
  • Loading branch information
josephg committed Jan 13, 2012
1 parent 92c4591 commit e3ab648
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cp.js
Original file line number Diff line number Diff line change
Expand Up @@ -4217,11 +4217,11 @@ Space.prototype.segmentQueryFirst = function(start, end, layers, group)
out = info;
}

return out.t;
return out ? out.t : 1;
};

this.staticShapes.segmentQuery(start, end, 1, helper);
this.activeShapes.segmentQuery(start, end, out.t, helper);
this.activeShapes.segmentQuery(start, end, out ? out.t : 1, helper);

return out;
};
Expand Down
Loading

0 comments on commit e3ab648

Please sign in to comment.