diff options
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pango-matrix.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/pango/pango-matrix.c b/pango/pango-matrix.c index 666fe55a..a066eb57 100644 --- a/pango/pango-matrix.c +++ b/pango/pango-matrix.c @@ -461,17 +461,18 @@ pango_matrix_transform_pixel_rectangle (const PangoMatrix *matrix, min_x = max_x = quad_x[0]; min_y = max_y = quad_y[0]; - for (i=1; i < 4; i++) { + for (i=1; i < 4; i++) + { if (quad_x[i] < min_x) - min_x = quad_x[i]; + min_x = quad_x[i]; else if (quad_x[i] > max_x) - max_x = quad_x[i]; + max_x = quad_x[i]; if (quad_y[i] < min_y) - min_y = quad_y[i]; + min_y = quad_y[i]; else if (quad_y[i] > max_y) - max_y = quad_y[i]; - } + max_y = quad_y[i]; + } rect->x = floor (min_x); rect->y = floor (min_y); |