[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.
This commit is contained in:
Chris Wilson 2009-07-29 16:10:04 +01:00
parent 81d3e15e6c
commit acfcf4a31b

View file

@ -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,