avoid uninitialized result from size_request with Ubuntu, see #17707

(cherry picked from commit 83012dc082)
This commit is contained in:
Paul Cornett
2016-10-31 09:32:20 -07:00
parent 12948ba5e3
commit 856b2f6e09

View File

@@ -320,7 +320,7 @@ wxControl::GetDefaultAttributesFromGTKWidget(GtkWidget* widget,
// been recalculated and cached by us. We want GTK+ information. // been recalculated and cached by us. We want GTK+ information.
wxSize wxControl::GTKGetPreferredSize(GtkWidget* widget) const wxSize wxControl::GTKGetPreferredSize(GtkWidget* widget) const
{ {
GtkRequisition req; GtkRequisition req = { 0, 0 };
#ifdef __WXGTK3__ #ifdef __WXGTK3__
int w, h; int w, h;
gtk_widget_get_size_request(widget, &w, &h); gtk_widget_get_size_request(widget, &w, &h);