Commit 8e34bff0 authored by Benjamin Otte's avatar Benjamin Otte

label: Set wrap on the layout unconditionally

parent ffb23fb8
......@@ -3387,7 +3387,6 @@ gtk_label_update_layout_width (GtkLabel *label)
else
width = allocation.width - xpad * 2;
pango_layout_set_wrap (priv->layout, priv->wrap_mode);
pango_layout_set_width (priv->layout, MAX (width, 1) * PANGO_SCALE);
}
else /* !priv->wrap */
......@@ -3460,6 +3459,7 @@ gtk_label_ensure_layout (GtkLabel *label)
pango_layout_set_alignment (priv->layout, align);
pango_layout_set_ellipsize (priv->layout, priv->ellipsize);
pango_layout_set_wrap (priv->layout, priv->wrap_mode);
pango_layout_set_single_paragraph_mode (priv->layout, priv->single_line_mode);
gtk_label_update_layout_width (label);
......
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