aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-07-09 22:43:25 +0800
committerChris Lahey <clahey@src.gnome.org>2000-07-09 22:43:25 +0800
commit4ac82c14c897e907e2df607920f5fe9a7b113eb5 (patch)
treeced61cf9bd6810f90bc35a347f106241502c7d91 /addressbook/gui/component
parentaae2005a2e3a3c2768abddd7c92ff04c35afc29c (diff)
downloadgsoc2013-evolution-4ac82c14c897e907e2df607920f5fe9a7b113eb5.tar
gsoc2013-evolution-4ac82c14c897e907e2df607920f5fe9a7b113eb5.tar.gz
gsoc2013-evolution-4ac82c14c897e907e2df607920f5fe9a7b113eb5.tar.bz2
gsoc2013-evolution-4ac82c14c897e907e2df607920f5fe9a7b113eb5.tar.lz
gsoc2013-evolution-4ac82c14c897e907e2df607920f5fe9a7b113eb5.tar.xz
gsoc2013-evolution-4ac82c14c897e907e2df607920f5fe9a7b113eb5.tar.zst
gsoc2013-evolution-4ac82c14c897e907e2df607920f5fe9a7b113eb5.zip
Fixed a small off by one error that was causing an extra character to get
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. svn path=/trunk/; revision=4016
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r--addressbook/gui/component/select-names/e-select-names-model.c3
1 files changed, 2 insertions, 1 deletions
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 --;
}
}
}