From 68fab4ef6f50ffbbc27b38759f53e2dae2a93d2b Mon Sep 17 00:00:00 2001 From: Massimo Valentini Date: Wed, 13 Aug 2014 17:04:47 +0200 Subject: [PATCH] Bug 81699 - Segfault sweep_line_delete on video playback (2) do not tessellate empty boxes --- src/cairo-bentley-ottmann-rectangular.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cairo-bentley-ottmann-rectangular.c b/src/cairo-bentley-ottmann-rectangular.c index 5541bdc..4bcd8d1 100644 --- a/src/cairo-bentley-ottmann-rectangular.c +++ b/src/cairo-bentley-ottmann-rectangular.c @@ -823,6 +823,9 @@ _cairo_bentley_ottmann_tessellate_boxes (const cairo_boxes_t *in, for (i = 0; i < chunk->count; i++) { int h; + if (box[i].p1.y == box[i].p2.y) + continue; + if (box[i].p1.x < box[i].p2.x) { rectangles[j].left.x = box[i].p1.x; rectangles[j].left.dir = 1; -- 1.9.3