From 575993a082d6ebe1bc8d1dac9effaf327ae5a654 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Mon, 20 Mar 2000 00:36:30 +0000 Subject: Fixed a crashing bug when you close an ETable. 2000-03-19 Christopher James Lahey * e-table-header.c: Fixed a crashing bug when you close an ETable. svn path=/trunk/; revision=2120 --- widgets/e-table/ChangeLog | 5 +++++ widgets/e-table/e-table-header.c | 2 +- widgets/table/e-table-header.c | 2 +- 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 + + * e-table-header.c: Fixed a crashing bug when you close an + ETable. + 2000-03-13 Christopher James Lahey * 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 (ð->columns [idx], ð->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 (ð->columns [idx], ð->columns [idx+1], - sizeof (ETableCol *) * eth->col_count - idx); + sizeof (ETableCol *) * (eth->col_count - idx - 1)); eth->col_count--; } -- cgit