mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
label: Remove useless if statements
We never pass nullable pointers into get_size_for_allocation.
This commit is contained in:
parent
2fc92db25c
commit
4e0f10955a
@ -3619,11 +3619,8 @@ get_size_for_allocation (GtkLabel *label,
|
|||||||
if (minimum_baseline || natural_baseline)
|
if (minimum_baseline || natural_baseline)
|
||||||
{
|
{
|
||||||
baseline = pango_layout_get_baseline (layout) / PANGO_SCALE;
|
baseline = pango_layout_get_baseline (layout) / PANGO_SCALE;
|
||||||
if (minimum_baseline)
|
*minimum_baseline = baseline;
|
||||||
*minimum_baseline = baseline;
|
*natural_baseline = baseline;
|
||||||
|
|
||||||
if (natural_baseline)
|
|
||||||
*natural_baseline = baseline;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g_object_unref (layout);
|
g_object_unref (layout);
|
||||||
|
Loading…
Reference in New Issue
Block a user