mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-03 09:20:26 +01:00
[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:
parent
81d3e15e6c
commit
acfcf4a31b
1 changed files with 0 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue