summaryrefslogtreecommitdiffstats
path: root/libdimension/prtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/prtree.c')
-rw-r--r--libdimension/prtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/prtree.c b/libdimension/prtree.c
index d36e54a..15bc997 100644
--- a/libdimension/prtree.c
+++ b/libdimension/prtree.c
@@ -451,7 +451,7 @@ dmnsn_split_unbounded(dmnsn_list *objects)
dmnsn_object *object;
dmnsn_list_get(i, &object);
- if (isinf(object->bounding_box.min.x)) {
+ if (dmnsn_bounding_box_is_infinite(object->bounding_box)) {
dmnsn_list_iterator *next = dmnsn_list_next(i);
dmnsn_list_iterator_remove(objects, i);
dmnsn_list_iterator_insert(unbounded, NULL, i);