summaryrefslogtreecommitdiff
path: root/content/geometry
diff options
context:
space:
mode:
Diffstat (limited to 'content/geometry')
-rw-r--r--content/geometry/segmentIntersection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/geometry/segmentIntersection.cpp b/content/geometry/segmentIntersection.cpp
index 4262ddc..acce7cc 100644
--- a/content/geometry/segmentIntersection.cpp
+++ b/content/geometry/segmentIntersection.cpp
@@ -18,8 +18,8 @@ struct event {
int id, type;
bool operator<(const event& o) const {
if (real(p) != real(o.p)) return real(p) < real(o.p);
- if (type != o.type) return type > o.type;
- return imag(p) < imag(o.p);
+ if (imag(p) != imag(o.p)) return imag(p) < imag(o.p);
+ return type > o.type;
}
};