aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/gui/component/select-names/e-select-names-model.c3
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 --;
}
}
}