Commit c08f2cb7 authored by Timm Bäder's avatar Timm Bäder 👎 Committed by Daniel Boles

label: Remove useless if statements

We never pass nullable pointers into get_size_for_allocation.
parent 52099951
......@@ -3645,11 +3645,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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment