From 8d8724e80462593f6fee434cf972a67cb4ded282 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 30 Oct 2007 09:45:45 -0700 Subject: [PATCH] Improve brace readability for multi-line conditional --- src/cairo.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; }