Commit 9bd206a6 authored by Benjamin Otte's avatar Benjamin Otte

label: No need to special case single-line mode

It's already taken care of by the layout.
parent 38676ef7
......@@ -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)
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