Commit 9366a345 authored by Tristan Van Berkom's avatar Tristan Van Berkom

Fix GtkCellAreaBox allocate_cells_manually to handle undersized areas.

parent c6572265
......@@ -697,7 +697,10 @@ allocate_cells_manually (GtkCellAreaBox *box,
/* Naturally distribute the allocation */
avail_size -= (nvisible - 1) * priv->spacing;
avail_size = gtk_distribute_natural_allocation (avail_size, nvisible, sizes);
if (avail_size > 0)
avail_size = gtk_distribute_natural_allocation (avail_size, nvisible, sizes);
else
avail_size = 0;
/* Calculate/distribute expand for cells */
if (nexpand > 0)
......
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