diff --git a/ChangeLog b/ChangeLog index cfbbe8bff..739f53e4e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-01-08 Emmanuele Bassi + + * clutter/clutter-model.c: + (clutter_model_appendv), + (clutter_model_prependv): Fix the columns length pre-condition + 2008-01-07 Emmanuele Bassi * clutter/clutter-model-default.[ch]: Remove the ClutterModelDefault diff --git a/clutter/clutter-model.c b/clutter/clutter-model.c index 9f981b1b8..262fea884 100644 --- a/clutter/clutter-model.c +++ b/clutter/clutter-model.c @@ -798,7 +798,7 @@ clutter_model_appendv (ClutterModel *model, gboolean resort = FALSE; g_return_if_fail (CLUTTER_IS_MODEL (model)); - g_return_if_fail (n_columns < clutter_model_get_n_columns (model)); + g_return_if_fail (n_columns <= clutter_model_get_n_columns (model)); g_return_if_fail (columns != NULL); g_return_if_fail (values != NULL); @@ -889,7 +889,7 @@ clutter_model_prependv (ClutterModel *model, gboolean resort = FALSE; g_return_if_fail (CLUTTER_IS_MODEL (model)); - g_return_if_fail (n_columns < clutter_model_get_n_columns (model)); + g_return_if_fail (n_columns <= clutter_model_get_n_columns (model)); g_return_if_fail (columns != NULL); g_return_if_fail (values != NULL);