From 4ac82c14c897e907e2df607920f5fe9a7b113eb5 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sun, 9 Jul 2000 14:43:25 +0000 Subject: Fixed a small off by one error that was causing an extra character to get 2000-07-09 Christopher James Lahey * gui/component/select-names/e-select-names-model.c: Fixed a small off by one error that was causing an extra character to get deleted sometimes. svn path=/trunk/; revision=4016 --- addressbook/ChangeLog | 6 ++++++ addressbook/gui/component/select-names/e-select-names-model.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 8a14d49470..27a59f3d8b 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2000-07-09 Christopher James Lahey + + * gui/component/select-names/e-select-names-model.c: Fixed a small + off by one error that was causing an extra character to get + deleted sometimes. + 2000-07-09 Anders Carlsson * gui/minicard/test-reflow.c (allocate_callback): Fix off by one bug with diff --git a/addressbook/gui/component/select-names/e-select-names-model.c b/addressbook/gui/component/select-names/e-select-names-model.c index fcf945259a..2281339a47 100644 --- a/addressbook/gui/component/select-names/e-select-names-model.c +++ b/addressbook/gui/component/select-names/e-select-names-model.c @@ -341,7 +341,7 @@ e_select_names_model_delete (ESelectNamesModel *model, gchar *temp = g_strdup_printf("%.*s%s", index, node->string, node->string + index + length); g_free(node->string); node->string = temp; - length = 0; + break; } if (length > 0) { @@ -353,6 +353,7 @@ e_select_names_model_delete (ESelectNamesModel *model, node2->string = temp; e_iterator_prev(iterator); e_iterator_delete(iterator); + length --; } } } -- cgit