From acfcf4a31b3370ca7bbdd522fad9ddc483df3472 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 29 Jul 2009 16:10:04 +0100 Subject: [PATCH] [path] Remove the broken rel-curve-to as line-to As pointed out by Andrea, and now tested by test/degenerate-rel-curve-to, this attempt at removing degenerate curve-to was broken. --- src/cairo-path-fixed.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c index 6ed717ca0..8b5d5c59a 100644 --- a/src/cairo-path-fixed.c +++ b/src/cairo-path-fixed.c @@ -522,12 +522,6 @@ _cairo_path_fixed_rel_curve_to (cairo_path_fixed_t *path, if (unlikely (! path->has_current_point)) return _cairo_error (CAIRO_STATUS_NO_CURRENT_POINT); - if (dx2 == 0 && dy2 == 0) { - return _cairo_path_fixed_line_to (path, - path->current_point.x, - path->current_point.y); - } - return _cairo_path_fixed_curve_to (path, path->current_point.x + dx0, path->current_point.y + dy0,