From 04f33e8dc79ea8b6b859362effb1892c3fed347a Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 25 May 2010 11:00:50 -0400 Subject: [PATCH] [StTable] Clamp children to integral positions --- src/st/st-table.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/st/st-table.c b/src/st/st-table.c index 878bc6834..5a2645fe8 100644 --- a/src/st/st-table.c +++ b/src/st/st-table.c @@ -234,12 +234,12 @@ st_table_homogeneous_allocate (ClutterActor *self, col_spacing = priv->col_spacing; row_spacing = priv->row_spacing; - col_width = (content_box->x2 - content_box->x1 + col_width = (int) (content_box->x2 - content_box->x1 - (col_spacing * (priv->n_cols - 1))) - / priv->n_cols; - row_height = (content_box->y2 - content_box->y1 + / priv->n_cols + 0.5; + row_height = (int) (content_box->y2 - content_box->y1 - (row_spacing * (priv->n_rows - 1))) - / priv->n_rows; + / priv->n_rows + 0.5; children = st_container_get_children_list (ST_CONTAINER (self)); for (list = children; list; list = list->next)