summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--clutter/clutter-flow-layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clutter/clutter-flow-layout.c b/clutter/clutter-flow-layout.c
index 38f0fe669..cf951c77b 100644
--- a/clutter/clutter-flow-layout.c
+++ b/clutter/clutter-flow-layout.c
@@ -572,8 +572,8 @@ clutter_flow_layout_allocate (ClutterLayoutManager *manager,
* available size in case the FlowLayout wasn't given the exact
* size it requested
*/
- if ((priv->req_width > 0 && avail_width != priv->req_width) ||
- (priv->req_height > 0 && avail_height != priv->req_height))
+ if ((priv->req_width >= 0 && avail_width != priv->req_width) ||
+ (priv->req_height >= 0 && avail_height != priv->req_height))
{
clutter_flow_layout_get_preferred_width (manager, container,
avail_height,