Skip to content

Commit efa36dc

Browse files
committed
correctly sort FOLDED_POINT in sweep event queue
1 parent 507dd26 commit efa36dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spatialjoin/Sweeper.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,10 +548,10 @@ class Sweeper {
548548
return 1;
549549

550550
// points before lines
551-
if (boxa->type == POINT &&
551+
if ((boxa->type == POINT || boxa->type == FOLDED_POINT) &&
552552
(boxb->type == SIMPLE_LINE || boxb->type == LINE))
553553
return -1;
554-
if (boxb->type == POINT &&
554+
if ((boxb->type == POINT || boxb->type == FOLDED_POINT) &&
555555
(boxa->type == SIMPLE_LINE || boxa->type == LINE))
556556
return 1;
557557

0 commit comments

Comments
 (0)