diff options
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names-model.c | 3 |
2 files changed, 8 insertions, 1 deletions
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 <clahey@helixcode.com> + + * 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 <andersca@gnu.org> * 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 --; } } } |