Skip to content

Commit

Permalink
reverse infinite check order in clip_0/1
Browse files Browse the repository at this point in the history
  • Loading branch information
nickkamp1 committed Jan 22, 2024
1 parent b3a2c21 commit 2b409a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/detector/private/Path.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ void Path::ClipToOuterBounds() {
if(dot < 0) {
p0.swap(p1);
}
bool clip_0 = ((p0 - first_point_) * direction_ > 0) || (first_inf_);
bool clip_1 = ((p1 - last_point_) * direction_ < 0) || (last_inf_);
bool clip_0 = (first_inf_) || ((p0 - first_point_) * direction_ > 0);
bool clip_1 = (last_inf_) || ((p1 - last_point_) * direction_ < 0);
bool clip = clip_0 or clip_1;
if(clip_0) {
first_point_ = GeometryPosition(p0);
Expand Down

0 comments on commit 2b409a6

Please sign in to comment.