mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 01:48:07 +02:00
[cairo-path-fixed] Drop the _cairo_error() markup.
Do not use _cairo_error(CAIRO_STATUS_NO_CURRENT_POINT) within _cairo_path_fixed_get_current_point() as the only caller, cairo_get_current_point(), expects and handles that status.
This commit is contained in:
parent
189feaf352
commit
7ff80234e3
1 changed files with 5 additions and 2 deletions
|
|
@ -345,8 +345,11 @@ _cairo_path_fixed_get_current_point (cairo_path_fixed_t *path,
|
|||
cairo_fixed_t *x,
|
||||
cairo_fixed_t *y)
|
||||
{
|
||||
if (! path->has_current_point)
|
||||
return _cairo_error (CAIRO_STATUS_NO_CURRENT_POINT);
|
||||
if (! path->has_current_point) {
|
||||
/* No need for _cairo_error() as the only caller,
|
||||
* cairo_get_current_point(), expects and handles NO_CURRENT_POINT */
|
||||
return CAIRO_STATUS_NO_CURRENT_POINT;
|
||||
}
|
||||
|
||||
*x = path->current_point.x;
|
||||
*y = path->current_point.y;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue