aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-05-15 11:57:37 +0800
committerChris Lahey <clahey@src.gnome.org>2001-05-15 11:57:37 +0800
commit6d07e079108d5ce0fe3f2202540ba11d5d690428 (patch)
tree26ea6c781615ab9578c394440795d4c1fb0d7828
parent05169b7497441c46e07f7e6d5d795ac6f47edc91 (diff)
downloadgsoc2013-evolution-6d07e079108d5ce0fe3f2202540ba11d5d690428.tar
gsoc2013-evolution-6d07e079108d5ce0fe3f2202540ba11d5d690428.tar.gz
gsoc2013-evolution-6d07e079108d5ce0fe3f2202540ba11d5d690428.tar.bz2
gsoc2013-evolution-6d07e079108d5ce0fe3f2202540ba11d5d690428.tar.lz
gsoc2013-evolution-6d07e079108d5ce0fe3f2202540ba11d5d690428.tar.xz
gsoc2013-evolution-6d07e079108d5ce0fe3f2202540ba11d5d690428.tar.zst
gsoc2013-evolution-6d07e079108d5ce0fe3f2202540ba11d5d690428.zip
Fix a small error not decreasing the data_count here.
2001-05-14 Christopher James Lahey <clahey@ximian.com> * gui/widgets/e-minicard-view-model.c (remove_card): Fix a small error not decreasing the data_count here. svn path=/trunk/; revision=9810
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/widgets/e-minicard-view-model.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 39b4f0173e..ba324e0bad 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-14 Christopher James Lahey <clahey@ximian.com>
+
+ * gui/widgets/e-minicard-view-model.c (remove_card): Fix a small
+ error not decreasing the data_count here.
+
2001-05-13 Chris Toshok <toshok@ximian.com>
* gui/component/addressbook.h: add prototype for
diff --git a/addressbook/gui/widgets/e-minicard-view-model.c b/addressbook/gui/widgets/e-minicard-view-model.c
index c58452a3ac..00c0e4fd9f 100644
--- a/addressbook/gui/widgets/e-minicard-view-model.c
+++ b/addressbook/gui/widgets/e-minicard-view-model.c
@@ -445,7 +445,8 @@ remove_card(EBookView *book_view,
for ( i = 0; i < model->data_count; i++) {
if (!strcmp(e_card_get_id(model->data[i]), id) ) {
gtk_object_unref(GTK_OBJECT(model->data[i]));
- memmove(model->data + i, model->data + i + 1, (model->data_count - i - 1) * sizeof (ECardSimple *));
+ memmove(model->data + i, model->data + i + 1, (model->data_count - i - 1) * sizeof (ECard *));
+ model->data_count --;
found = TRUE;
}
}