summaryrefslogtreecommitdiff
path: root/src/cairo-path-fixed.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-07-29 16:10:04 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-07-29 16:17:11 +0100
commitacfcf4a31b3370ca7bbdd522fad9ddc483df3472 (patch)
treee276dee708ca4795285af837e293e0771906757b /src/cairo-path-fixed.c
parent81d3e15e6ca7b7c1a07fdfb6d03c43484ce9f502 (diff)
[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.
Diffstat (limited to 'src/cairo-path-fixed.c')
-rw-r--r--src/cairo-path-fixed.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c
index 6ed717ca..8b5d5c59 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,