aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorMike Kestner <mkestner@ximian.com>2003-05-20 02:37:12 +0800
committerMike Kestner <mkestner@src.gnome.org>2003-05-20 02:37:12 +0800
commitfcb80018c0097bbf9b32a0cc66513ecc3428ee30 (patch)
tree672cb5512ca7ce7a86356ecd61cad23fd344dca9 /widgets/table
parent35120cf3f410d31d9f9c48f7bc623cf30a5bb22d (diff)
downloadgsoc2013-evolution-fcb80018c0097bbf9b32a0cc66513ecc3428ee30.tar
gsoc2013-evolution-fcb80018c0097bbf9b32a0cc66513ecc3428ee30.tar.gz
gsoc2013-evolution-fcb80018c0097bbf9b32a0cc66513ecc3428ee30.tar.bz2
gsoc2013-evolution-fcb80018c0097bbf9b32a0cc66513ecc3428ee30.tar.lz
gsoc2013-evolution-fcb80018c0097bbf9b32a0cc66513ecc3428ee30.tar.xz
gsoc2013-evolution-fcb80018c0097bbf9b32a0cc66513ecc3428ee30.tar.zst
gsoc2013-evolution-fcb80018c0097bbf9b32a0cc66513ecc3428ee30.zip
revert a broken CLEAN_FILES change. [42478]
2003-05-19 Mike Kestner <mkestner@ximian.com> * Makefile.am : revert a broken CLEAN_FILES change. [42478] 2003-05-19 Mike Kestner <mkestner@ximian.com> * e-cell-text.c (build_layout): don't call any line breaking or justification code if the width <= 0 since it's pointless and apparently pango likes to crash when you do. [43199] svn path=/trunk/; revision=21260
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-cell-text.c5
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) {