mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-26 22:30:24 +01:00
Improve brace readability for multi-line conditional
This commit is contained in:
parent
f43f0c1040
commit
8d8724e804
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue