From c87d1c2fb9c6e06688df9b1c00be9a0b7874ec05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 5 Nov 2021 17:41:08 +0100 Subject: [PATCH] paned: Don't pass values < -1 to gtk_widget_measure() Fixes #4404 --- gtk/gtkpaned.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index e12c8e5c9c..e4d8ff8124 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -1197,7 +1197,7 @@ gtk_paned_get_preferred_size_for_opposite_orientation (GtkWidget *widget, { gtk_widget_measure (paned->start_child, OPPOSITE_ORIENTATION (paned->orientation), - for_start_child, + MAX (for_start_child, -1), &child_min, &child_nat, NULL, NULL); @@ -1209,7 +1209,7 @@ gtk_paned_get_preferred_size_for_opposite_orientation (GtkWidget *widget, { gtk_widget_measure (paned->end_child, OPPOSITE_ORIENTATION (paned->orientation), - for_end_child, + MAX (for_end_child, -1), &child_min, &child_nat, NULL, NULL);