From d332255111cb763542252a0ba9af249407b63287 Mon Sep 17 00:00:00 2001 From: Andre Kuehne Date: Wed, 18 Jul 2012 20:57:00 +0200 Subject: [PATCH] Fix clutter_table_layout_pack row/column count incrementation. When appending (with a negative row/column parameter), the row/column count should be incremented by 1, not 2. This also fixes layout errors when using column/row spacing: The amount of extra space required was calculated incorrectly due to the wrong column count. https://bugzilla.gnome.org/show_bug.cgi?id=679990 --- clutter/clutter-table-layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-table-layout.c b/clutter/clutter-table-layout.c index 44729022a..9927ad59a 100644 --- a/clutter/clutter-table-layout.c +++ b/clutter/clutter-table-layout.c @@ -1905,10 +1905,10 @@ clutter_table_layout_pack (ClutterTableLayout *layout, g_assert (CLUTTER_IS_TABLE_CHILD (meta)); if (row < 0) - row = priv->n_rows + 1; + row = priv->n_rows; if (column < 0) - column = priv->n_cols + 1; + column = priv->n_cols; table_child_set_position (CLUTTER_TABLE_CHILD (meta), column, row); }