aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMike Kestner <mkestner@ximian.com>2003-02-21 05:52:15 +0800
committerMike Kestner <mkestner@src.gnome.org>2003-02-21 05:52:15 +0800
commit4508cf787c673ae9ce69c55f161c876e9c851cfd (patch)
tree34eb6b60684bbee3a166a21f66f877aefd7ac17c /widgets
parent011502e395f25263e53ce500a3c7c309f33b3827 (diff)
downloadgsoc2013-evolution-4508cf787c673ae9ce69c55f161c876e9c851cfd.tar
gsoc2013-evolution-4508cf787c673ae9ce69c55f161c876e9c851cfd.tar.gz
gsoc2013-evolution-4508cf787c673ae9ce69c55f161c876e9c851cfd.tar.bz2
gsoc2013-evolution-4508cf787c673ae9ce69c55f161c876e9c851cfd.tar.lz
gsoc2013-evolution-4508cf787c673ae9ce69c55f161c876e9c851cfd.tar.xz
gsoc2013-evolution-4508cf787c673ae9ce69c55f161c876e9c851cfd.tar.zst
gsoc2013-evolution-4508cf787c673ae9ce69c55f161c876e9c851cfd.zip
fix overzealous g_asserts to avoid crashes when eti->rows is already
2003-02-20 Mike Kestner <mkestner@ximian.com> * e-table-item.c (eti_table_model_rows_deleted): fix overzealous g_asserts to avoid crashes when eti->rows is already updated. svn path=/trunk/; revision=19982
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-table-item.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index ac73bc1f9a..8b64d06d2d 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -1169,13 +1169,9 @@ eti_table_model_rows_deleted (ETableModel *table_model, int row, int count, ETab
return;
}
- g_assert (eti->rows == -1 || row + count <= eti->rows);
-
eti->rows = e_table_model_row_count (eti->table_model);
- g_assert (row <= eti->rows);
-
- if (eti->height_cache) {
+ if (eti->height_cache && (eti->rows > row)) {
memmove(eti->height_cache + row, eti->height_cache + row + count, (eti->rows - row) * sizeof(int));
}