summaryrefslogtreecommitdiff
path: root/src/cairo-path-bounds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-path-bounds.c')
-rw-r--r--src/cairo-path-bounds.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cairo-path-bounds.c b/src/cairo-path-bounds.c
index d32c2607f..75308c6ec 100644
--- a/src/cairo-path-bounds.c
+++ b/src/cairo-path-bounds.c
@@ -331,7 +331,9 @@ _cairo_path_fixed_extents (const cairo_path_fixed_t *path,
if (! path->has_curve_to) {
*box = path->extents;
- return path->extents.p1.x < path->extents.p2.x;
+ /* empty extents should still have an origin and should not
+ * be {0, 0, 0, 0} */
+ return path->extents.p1.x <= path->extents.p2.x;
}
_cairo_path_bounder_init (&bounder);