mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 09:00:34 +00:00
label: No need to special case single-line mode
It's already taken care of by the layout.
This commit is contained in:
parent
38676ef718
commit
9bd206a65c
@ -3559,7 +3559,7 @@ gtk_label_get_preferred_layout_size (GtkLabel *label,
|
||||
pango_layout_get_extents (layout, NULL, natural);
|
||||
natural->x = natural->y = 0;
|
||||
|
||||
if (priv->single_line_mode || priv->wrap)
|
||||
if (priv->wrap)
|
||||
natural->height = get_single_line_height (GTK_WIDGET (label), layout);
|
||||
|
||||
if (priv->ellipsize || priv->wrap)
|
||||
|
Loading…
Reference in New Issue
Block a user