aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets')
-rw-r--r--lib/widgets/ephy-label.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/widgets/ephy-label.c b/lib/widgets/ephy-label.c
index 8abad16f3..8c38db095 100644
--- a/lib/widgets/ephy-label.c
+++ b/lib/widgets/ephy-label.c
@@ -1702,7 +1702,10 @@ ephy_label_size_allocate (GtkWidget *widget,
(* GTK_WIDGET_CLASS (parent_class)->size_allocate) (widget, allocation);
if (label->ellipsize)
- pango_layout_set_width (label->layout, allocation->width * PANGO_SCALE);
+ {
+ ephy_label_ensure_layout (label);
+ pango_layout_set_width (label->layout, allocation->width * PANGO_SCALE);
+ }
if (label->select_info && label->select_info->window)
{