[cairo-commit] 2 commits - src/cairo.c test/get-path-extents.c

Benjamin Otte company at kemper.freedesktop.org
Sat Feb 19 01:41:45 PST 2011


 src/cairo.c             |    2 --
 test/get-path-extents.c |    2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 94612bc0323a0af0053ebec769040a7506fc5c22
Author: Benjamin Otte <otte at redhat.com>
Date:   Sat Feb 19 10:40:01 2011 +0100

    arc: Remove erroneous return statement
    
    Introduced in e46dc9e17a6f6737d5624dbcdd3c42c2353a72f1.

diff --git a/src/cairo.c b/src/cairo.c
index 8c19cd1..2ea36bc 100644
--- a/src/cairo.c
+++ b/src/cairo.c
@@ -1910,8 +1910,6 @@ cairo_arc_negative (cairo_t *cr,
 	return;
     }
 
-	return;
-
     if (angle2 > angle1) {
 	/* decrease angle2 by multiples of full circle until it
 	 * satisfies angle2 <= angle1 */
commit 9fc5ff797ac6f4cf9029319907fb5556a585108b
Author: Benjamin Otte <otte at redhat.com>
Date:   Sat Feb 19 10:32:19 2011 +0100

    test: Fix copy/paste error

diff --git a/test/get-path-extents.c b/test/get-path-extents.c
index bd54f0e..4123ddb 100644
--- a/test/get-path-extents.c
+++ b/test/get-path-extents.c
@@ -158,13 +158,13 @@ draw (cairo_t *cr, int width, int height)
     errors += !check_extents (ctx, phase, cr2, PATH, EQUALS, 200, 400, 0, 0);
 
     cairo_new_path (cr2);
-    cairo_new_path (cr2);
     cairo_arc (cr2, 200, 400, 10., 0, 0);
     phase = "Degenerate arc (Θ=0)";
     errors += !check_extents (ctx, phase, cr2, FILL, EQUALS, 0, 0, 0, 0);
     errors += !check_extents (ctx, phase, cr2, STROKE, EQUALS, 0, 0, 0, 0);
     errors += !check_extents (ctx, phase, cr2, PATH, EQUALS, 210, 400, 0, 0);
 
+    cairo_new_path (cr2);
     cairo_arc_negative (cr2, 200, 400, 10., 0, 0);
     phase = "Degenerate negative arc (Θ=0)";
     errors += !check_extents (ctx, phase, cr2, FILL, EQUALS, 0, 0, 0, 0);


More information about the cairo-commit mailing list