Fixed bug in GtkSizeRequest code where the cache is not reset properly

Fixes this bug https://bugzilla.gnome.org/show_bug.cgi?id=646500
This commit is contained in:
Tristan Van Berkom 2011-04-04 13:58:05 +09:00
parent f6499818b5
commit d4021d7a1b

View File

@ -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;