summaryrefslogtreecommitdiff
path: root/gtk/gtksizerequest.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2011-04-04 13:58:05 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2011-04-04 13:58:05 +0900
commitd4021d7a1b88d8c649029285ee8f0968d8992243 (patch)
tree45f197e156b0821349d6fdcfc80207c7f3cf5007 /gtk/gtksizerequest.c
parentf6499818b501afb0ee0fd48a74248947abc7d32d (diff)
downloadgtk+-d4021d7a1b88d8c649029285ee8f0968d8992243.tar.gz
Fixed bug in GtkSizeRequest code where the cache is not reset properly
Fixes this bug https://bugzilla.gnome.org/show_bug.cgi?id=646500
Diffstat (limited to 'gtk/gtksizerequest.c')
-rw-r--r--gtk/gtksizerequest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtksizerequest.c b/gtk/gtksizerequest.c
index 4b379cc780..ef3983cdbf 100644
--- a/gtk/gtksizerequest.c
+++ b/gtk/gtksizerequest.c
@@ -143,7 +143,8 @@ init_cache (GtkWidget *widget)
if (_gtk_widget_get_width_request_needed (widget))
clear_cache (cache, GTK_SIZE_GROUP_HORIZONTAL);
- else if (_gtk_widget_get_height_request_needed (widget))
+
+ if (_gtk_widget_get_height_request_needed (widget))
clear_cache (cache, GTK_SIZE_GROUP_VERTICAL);
return cache;