diff --git a/src/cairo-default-context.c b/src/cairo-default-context.c index 26f873a..65513ca 100644 --- a/src/cairo-default-context.c +++ b/src/cairo-default-context.c @@ -837,25 +837,25 @@ _cairo_default_context_rectangle (void *abstract_cr, { cairo_default_context_t *cr = abstract_cr; cairo_status_t status; status = _cairo_default_context_move_to (cr, x, y); if (unlikely (status)) return status; - status = _cairo_default_context_line_to (cr, width, 0); + status = _cairo_default_context_rel_line_to (cr, width, 0); if (unlikely (status)) return status; - status = _cairo_default_context_line_to (cr, 0, height); + status = _cairo_default_context_rel_line_to (cr, 0, height); if (unlikely (status)) return status; - status = _cairo_default_context_line_to (cr, -width, 0); + status = _cairo_default_context_rel_line_to (cr, -width, 0); if (unlikely (status)) return status; return _cairo_default_context_close_path (cr); } static void _cairo_default_context_path_extents (void *abstract_cr,