summaryrefslogtreecommitdiff
path: root/gtk/gtklabel.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-04-25 15:43:10 +0200
committerTimm Bäder <mail@baedert.org>2017-04-25 20:30:37 +0200
commit4e0f10955ac0e246ab0c5f98e91a1e137cfffcb3 (patch)
treecc5af1fbf8c0cb9160a9a7a0ac80403370736942 /gtk/gtklabel.c
parent2fc92db25c9939cdf701b83bbc913cb043cf9100 (diff)
downloadgtk+-4e0f10955ac0e246ab0c5f98e91a1e137cfffcb3.tar.gz
label: Remove useless if statements
We never pass nullable pointers into get_size_for_allocation.
Diffstat (limited to 'gtk/gtklabel.c')
-rw-r--r--gtk/gtklabel.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index ffa3f340b9..b3111dd50b 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -3619,11 +3619,8 @@ get_size_for_allocation (GtkLabel *label,
if (minimum_baseline || natural_baseline)
{
baseline = pango_layout_get_baseline (layout) / PANGO_SCALE;
- if (minimum_baseline)
- *minimum_baseline = baseline;
-
- if (natural_baseline)
- *natural_baseline = baseline;
+ *minimum_baseline = baseline;
+ *natural_baseline = baseline;
}
g_object_unref (layout);