aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-02 16:14:47 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-02 16:14:47 +0800
commit85e4486c1c6ac2b8d60807117af8255d6daee61f (patch)
treef53a32d13d433f06ed6bc4c142b460e75bd3703d
parentef233d76ee4e653b1c9cc60cb342682e89a37f32 (diff)
downloadgsoc2013-evolution-85e4486c1c6ac2b8d60807117af8255d6daee61f.tar.gz
gsoc2013-evolution-85e4486c1c6ac2b8d60807117af8255d6daee61f.tar.zst
gsoc2013-evolution-85e4486c1c6ac2b8d60807117af8255d6daee61f.zip
Fixed the multiple copies of rows in ETable bug.
2000-06-02 Christopher James Lahey <clahey@helixcode.com> * e-table-sorted-variable.c: Fixed the multiple copies of rows in ETable bug. svn path=/trunk/; revision=3386
-rw-r--r--widgets/e-table/ChangeLog5
-rw-r--r--widgets/e-table/e-table-sorted-variable.c2
-rw-r--r--widgets/table/e-table-sorted-variable.c2
3 files changed, 7 insertions, 2 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog
index b44074ee6a..ae4163f8ae 100644
--- a/widgets/e-table/ChangeLog
+++ b/widgets/e-table/ChangeLog
@@ -1,3 +1,8 @@
+2000-06-02 Christopher James Lahey <clahey@helixcode.com>
+
+ * e-table-sorted-variable.c: Fixed the multiple copies of rows in
+ ETable bug.
+
2000-06-01 Dan Winship <danw@helixcode.com>
* e-table-group.c (e_table_group_key_press):
diff --git a/widgets/e-table/e-table-sorted-variable.c b/widgets/e-table/e-table-sorted-variable.c
index 7ea2eac04b..8c7e49cbbd 100644
--- a/widgets/e-table/e-table-sorted-variable.c
+++ b/widgets/e-table/e-table-sorted-variable.c
@@ -155,7 +155,7 @@ etsv_add (ETableSubsetVariable *etssv,
i = 0;
while (etsv_compare(etsv, etss->map_table[i], row) < 0)
i++;
- memmove(etss->map_table + i + 1, etss->map_table + i, etss->n_map - i);
+ memmove(etss->map_table + i + 1, etss->map_table + i, (etss->n_map - i) * sizeof(int));
}
etss->map_table[i] = row;
etss->n_map++;
diff --git a/widgets/table/e-table-sorted-variable.c b/widgets/table/e-table-sorted-variable.c
index 7ea2eac04b..8c7e49cbbd 100644
--- a/widgets/table/e-table-sorted-variable.c
+++ b/widgets/table/e-table-sorted-variable.c
@@ -155,7 +155,7 @@ etsv_add (ETableSubsetVariable *etssv,
i = 0;
while (etsv_compare(etsv, etss->map_table[i], row) < 0)
i++;
- memmove(etss->map_table + i + 1, etss->map_table + i, etss->n_map - i);
+ memmove(etss->map_table + i + 1, etss->map_table + i, (etss->n_map - i) * sizeof(int));
}
etss->map_table[i] = row;
etss->n_map++;