diff options
-rw-r--r-- | widgets/table/e-cell-text.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index 90d8f7805e..3d18bc38c4 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -473,11 +473,10 @@ build_layout (ECellTextView *text_view, int row, const char *text, gint width) pango_attr_list_unref (attrs); } - if (text_view->edit) + if (text_view->edit || width <= 0) return layout; - if (width > 0) - pango_layout_set_width (layout, width * PANGO_SCALE); + pango_layout_set_width (layout, width * PANGO_SCALE); pango_layout_set_wrap (layout, PANGO_WRAP_CHAR); if (pango_layout_get_line_count (layout) > 1) { |