aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-02-18 05:47:52 +0800
committerChris Toshok <toshok@src.gnome.org>2003-02-18 05:47:52 +0800
commit0def5bcb845217a42ffeecfc62fe84010dc22749 (patch)
tree51c711f72ac977f70e1c53d9fdf68221630a1552 /widgets
parentc879655ace274596ae2dd3e78e348facd821e3b7 (diff)
downloadgsoc2013-evolution-0def5bcb845217a42ffeecfc62fe84010dc22749.tar
gsoc2013-evolution-0def5bcb845217a42ffeecfc62fe84010dc22749.tar.gz
gsoc2013-evolution-0def5bcb845217a42ffeecfc62fe84010dc22749.tar.bz2
gsoc2013-evolution-0def5bcb845217a42ffeecfc62fe84010dc22749.tar.lz
gsoc2013-evolution-0def5bcb845217a42ffeecfc62fe84010dc22749.tar.xz
gsoc2013-evolution-0def5bcb845217a42ffeecfc62fe84010dc22749.tar.zst
gsoc2013-evolution-0def5bcb845217a42ffeecfc62fe84010dc22749.zip
make sure the row >= 0 before calling value_at to calc "strikeout".
2003-02-17 Chris Toshok <toshok@ximian.com> * e-cell-text.c (build_layout): make sure the row >= 0 before calling value_at to calc "strikeout". svn path=/trunk/; revision=19926
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-cell-text.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index 60ee316e49..6477a91814 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -463,7 +463,9 @@ build_layout (ECellTextView *text_view, int row, const char *text)
bold = ect->bold_column >= 0 &&
row >= 0 &&
e_table_model_value_at(ecell_view->e_table_model, ect->bold_column, row);
- strikeout = ect->strikeout_column >= 0 && e_table_model_value_at(ecell_view->e_table_model, ect->strikeout_column, row);
+ strikeout = ect->strikeout_column >= 0 &&
+ row >= 0 &&
+ e_table_model_value_at(ecell_view->e_table_model, ect->strikeout_column, row);
if (bold || strikeout) {
PangoAttrList *attrs;