aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-03-20 08:36:30 +0800
committerChris Lahey <clahey@src.gnome.org>2000-03-20 08:36:30 +0800
commit575993a082d6ebe1bc8d1dac9effaf327ae5a654 (patch)
treedc4ebe40b7e13dcc560fe62c5698a76cd7afb87b /widgets
parent67bf8621089b56d2910c3580ac67ccf6fa7a19c9 (diff)
downloadgsoc2013-evolution-575993a082d6ebe1bc8d1dac9effaf327ae5a654.tar.gz
gsoc2013-evolution-575993a082d6ebe1bc8d1dac9effaf327ae5a654.tar.zst
gsoc2013-evolution-575993a082d6ebe1bc8d1dac9effaf327ae5a654.zip
Fixed a crashing bug when you close an ETable.
2000-03-19 Christopher James Lahey <clahey@helixcode.com> * e-table-header.c: Fixed a crashing bug when you close an ETable. svn path=/trunk/; revision=2120
Diffstat (limited to 'widgets')
-rw-r--r--widgets/e-table/ChangeLog5
-rw-r--r--widgets/e-table/e-table-header.c2
-rw-r--r--widgets/table/e-table-header.c2
3 files changed, 7 insertions, 2 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog
index 9c979e5ea7..ad3b798140 100644
--- a/widgets/e-table/ChangeLog
+++ b/widgets/e-table/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-19 Christopher James Lahey <clahey@helixcode.com>
+
+ * e-table-header.c: Fixed a crashing bug when you close an
+ ETable.
+
2000-03-13 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Fixed a crashing bug when you cancel an edit.
diff --git a/widgets/e-table/e-table-header.c b/widgets/e-table/e-table-header.c
index 8465f28567..8a646381e8 100644
--- a/widgets/e-table/e-table-header.c
+++ b/widgets/e-table/e-table-header.c
@@ -265,7 +265,7 @@ eth_do_remove (ETableHeader *eth, int idx, gboolean do_unref)
gtk_object_unref (GTK_OBJECT (eth->columns [idx]));
memmove (&eth->columns [idx], &eth->columns [idx+1],
- sizeof (ETableCol *) * eth->col_count - idx);
+ sizeof (ETableCol *) * (eth->col_count - idx - 1));
eth->col_count--;
}
diff --git a/widgets/table/e-table-header.c b/widgets/table/e-table-header.c
index 8465f28567..8a646381e8 100644
--- a/widgets/table/e-table-header.c
+++ b/widgets/table/e-table-header.c
@@ -265,7 +265,7 @@ eth_do_remove (ETableHeader *eth, int idx, gboolean do_unref)
gtk_object_unref (GTK_OBJECT (eth->columns [idx]));
memmove (&eth->columns [idx], &eth->columns [idx+1],
- sizeof (ETableCol *) * eth->col_count - idx);
+ sizeof (ETableCol *) * (eth->col_count - idx - 1));
eth->col_count--;
}