label: Remove useless if statements

We never pass nullable pointers into get_size_for_allocation.
This commit is contained in:
Timm Bäder 2017-04-25 15:43:10 +02:00
parent 2fc92db25c
commit 4e0f10955a

View File

@ -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);