aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-header.c
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/table/e-table-header.c
parent67bf8621089b56d2910c3580ac67ccf6fa7a19c9 (diff)
downloadgsoc2013-evolution-575993a082d6ebe1bc8d1dac9effaf327ae5a654.tar
gsoc2013-evolution-575993a082d6ebe1bc8d1dac9effaf327ae5a654.tar.gz
gsoc2013-evolution-575993a082d6ebe1bc8d1dac9effaf327ae5a654.tar.bz2
gsoc2013-evolution-575993a082d6ebe1bc8d1dac9effaf327ae5a654.tar.lz
gsoc2013-evolution-575993a082d6ebe1bc8d1dac9effaf327ae5a654.tar.xz
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/table/e-table-header.c')
-rw-r--r--widgets/table/e-table-header.c2
1 files changed, 1 insertions, 1 deletions
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--;
}