Fix assertion.

Mon Jan 20 13:59:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

        * gtk/gtktable.c (gtk_table_resize): Fix assertion.
This commit is contained in:
Soeren Sandmann 2003-01-20 12:52:10 +00:00 committed by Søren Sandmann Pedersen
parent d867b9a8df
commit 4238d55740

View File

@ -512,7 +512,7 @@ gtk_table_resize (GtkTable *table,
{ {
g_return_if_fail (GTK_IS_TABLE (table)); g_return_if_fail (GTK_IS_TABLE (table));
g_return_if_fail (n_rows > 0 && n_rows < 65536); g_return_if_fail (n_rows > 0 && n_rows < 65536);
g_return_if_fail (n_rows > 0 && n_cols < 65536); g_return_if_fail (n_cols > 0 && n_cols < 65536);
n_rows = MAX (n_rows, 1); n_rows = MAX (n_rows, 1);
n_cols = MAX (n_cols, 1); n_cols = MAX (n_cols, 1);