diff options
Diffstat (limited to 'gtk/gtktable.c')
-rw-r--r-- | gtk/gtktable.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtktable.c b/gtk/gtktable.c index cf0cbb6c42..7d0fd1f59e 100644 --- a/gtk/gtktable.c +++ b/gtk/gtktable.c @@ -573,7 +573,7 @@ gtk_table_set_row_spacing (GtkTable *table, { g_return_if_fail (table != NULL); g_return_if_fail (GTK_IS_TABLE (table)); - g_return_if_fail (row + 1 < table->nrows); + g_return_if_fail (row < table->nrows); if (table->rows[row].spacing != spacing) { @@ -591,7 +591,7 @@ gtk_table_set_col_spacing (GtkTable *table, { g_return_if_fail (table != NULL); g_return_if_fail (GTK_IS_TABLE (table)); - g_return_if_fail (column + 1 < table->ncols); + g_return_if_fail (column < table->ncols); if (table->cols[column].spacing != spacing) { @@ -612,7 +612,7 @@ gtk_table_set_row_spacings (GtkTable *table, g_return_if_fail (GTK_IS_TABLE (table)); table->row_spacing = spacing; - for (row = 0; row + 1 < table->nrows; row++) + for (row = 0; row < table->nrows; row++) table->rows[row].spacing = spacing; if (GTK_WIDGET_VISIBLE (table)) @@ -629,7 +629,7 @@ gtk_table_set_col_spacings (GtkTable *table, g_return_if_fail (GTK_IS_TABLE (table)); table->column_spacing = spacing; - for (col = 0; col + 1 < table->ncols; col++) + for (col = 0; col < table->ncols; col++) table->cols[col].spacing = spacing; if (GTK_WIDGET_VISIBLE (table)) |