[paint-extents] Minor refactor

This commit is contained in:
Behdad Esfahbod 2022-12-24 10:12:35 -07:00
parent f8bf98798d
commit 988ca459f3
1 changed files with 1 additions and 2 deletions

View File

@ -172,8 +172,7 @@ typedef struct hb_bounds_t
else if (status == BOUNDED) else if (status == BOUNDED)
{ {
extents.intersect (o.extents); extents.intersect (o.extents);
if (extents.xmin >= extents.xmax || if (extents.is_empty ())
extents.ymin >= extents.ymax)
status = EMPTY; status = EMPTY;
} }
} }