From 5c95800cded4e906baf8ddd10bfb4abc59151b13 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 10 Apr 2007 12:13:10 -0700 Subject: [PATCH] Fix mis-indented _cairo_traps_init_box --- src/cairo-traps.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/cairo-traps.c b/src/cairo-traps.c index d9d57ad4a..f2b5ccbf2 100644 --- a/src/cairo-traps.c +++ b/src/cairo-traps.c @@ -87,26 +87,26 @@ cairo_status_t _cairo_traps_init_box (cairo_traps_t *traps, cairo_box_t *box) { - _cairo_traps_init (traps); + _cairo_traps_init (traps); + + traps->status = _cairo_traps_grow (traps); + if (traps->status) + return traps->status; + + traps->num_traps = 1; + + traps->traps[0].top = box->p1.y; + traps->traps[0].bottom = box->p2.y; + traps->traps[0].left.p1 = box->p1; + traps->traps[0].left.p2.x = box->p1.x; + traps->traps[0].left.p2.y = box->p2.y; + traps->traps[0].right.p1.x = box->p2.x; + traps->traps[0].right.p1.y = box->p1.y; + traps->traps[0].right.p2 = box->p2; + + traps->extents = *box; - traps->status = _cairo_traps_grow (traps); - if (traps->status) return traps->status; - - traps->num_traps = 1; - - traps->traps[0].top = box->p1.y; - traps->traps[0].bottom = box->p2.y; - traps->traps[0].left.p1 = box->p1; - traps->traps[0].left.p2.x = box->p1.x; - traps->traps[0].left.p2.y = box->p2.y; - traps->traps[0].right.p1.x = box->p2.x; - traps->traps[0].right.p1.y = box->p1.y; - traps->traps[0].right.p2 = box->p2; - - traps->extents = *box; - - return traps->status; } cairo_status_t