diff --git a/src/cairo.c b/src/cairo.c index d5ee15c63..f2b7917ed 100644 --- a/src/cairo.c +++ b/src/cairo.c @@ -3170,11 +3170,14 @@ cairo_get_current_point (cairo_t *cr, double *x_ret, double *y_ret) double x, y; if (cr->status == CAIRO_STATUS_SUCCESS && - _cairo_path_fixed_get_current_point (cr->path, &x_fixed, &y_fixed)) { + _cairo_path_fixed_get_current_point (cr->path, &x_fixed, &y_fixed)) + { x = _cairo_fixed_to_double (x_fixed); y = _cairo_fixed_to_double (y_fixed); _cairo_gstate_backend_to_user (cr->gstate, &x, &y); - } else { + } + else + { x = 0.0; y = 0.0; }