avoid uninitialized result from size_request with Ubuntu, see #17707
(cherry picked from commit 83012dc082
)
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user