From 25a092b604adcca3493b54f7520553de9a54f286 Mon Sep 17 00:00:00 2001 From: Bastian Winkler Date: Tue, 11 Mar 2014 12:35:03 +0100 Subject: [PATCH] grid-layout: Use correct orientation when requesting preferred child size Otherwise width and height are swapped. https://bugzilla.gnome.org/show_bug.cgi?id=725722 --- clutter/clutter-grid-layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-grid-layout.c b/clutter/clutter-grid-layout.c index bdb682a4c..ebd42ebd4 100644 --- a/clutter/clutter-grid-layout.c +++ b/clutter/clutter-grid-layout.c @@ -509,7 +509,7 @@ compute_request_for_child (ClutterGridRequest *request, } else { - if (orientation == CLUTTER_ORIENTATION_VERTICAL) + if (orientation == CLUTTER_ORIENTATION_HORIZONTAL) clutter_actor_get_preferred_width (child, -1, minimum, natural); else clutter_actor_get_preferred_height (child, -1, minimum, natural);