Commit 8c14bf00 authored by Tristan Van Berkom's avatar Tristan Van Berkom

Added return_if_fail guard to gtk_distribute_natural_allocation()

parent 0cb1f9a1
......@@ -584,6 +584,8 @@ gtk_distribute_natural_allocation (gint extra_space,
guint *spreading = g_newa (guint, n_requested_sizes);
gint i;
g_return_val_if_fail (extra_space >= 0, 0);
for (i = 0; i < n_requested_sizes; i++)
spreading[i] = i;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment