From 4ae6f10ae9decc45c0da54b21895b693bd7bbc6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 3 May 2016 16:07:50 -0400 Subject: [PATCH] label: minimum/natural size parameters are not nullable Stop comparing them to NULL. --- gtk/gtklabel.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 1089242db5..5607c91495 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -3641,11 +3641,8 @@ get_size_for_allocation (GtkLabel *label, pango_layout_get_pixel_size (layout, NULL, &text_height); - if (minimum_size) - *minimum_size = text_height; - - if (natural_size) - *natural_size = text_height; + *minimum_size = text_height; + *natural_size = text_height; if (minimum_baseline || natural_baseline) {