X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/370dc79c5a7fd9ac24fb001e38388a210750e2e7..01c54165d1182cc74d8e5d43cdb1985902af0b2f:/src/gtk/win_gtk.c diff --git a/src/gtk/win_gtk.c b/src/gtk/win_gtk.c index c505270cdc..85c77d7c02 100644 --- a/src/gtk/win_gtk.c +++ b/src/gtk/win_gtk.c @@ -394,6 +394,16 @@ gtk_pizza_set_size (GtkPizza *pizza, g_return_if_fail (GTK_IS_PIZZA (pizza)); g_return_if_fail (widget != NULL); +#ifndef WX_WARN_ILLEGAL_SETSIZE + /* this really shouldn't happen -- but it does, a lot, right now and we + can't pass negative values to gtk_widget_set_size_request() without getting + a warning printed out, so filter them out here */ + if ( width < 0 ) + width = 0; + if ( height < 0 ) + height = 0; +#endif + children = pizza->children; while (children) {