aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
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 /widgets/table
parentef233d76ee4e653b1c9cc60cb342682e89a37f32 (diff)
downloadgsoc2013-evolution-85e4486c1c6ac2b8d60807117af8255d6daee61f.tar
gsoc2013-evolution-85e4486c1c6ac2b8d60807117af8255d6daee61f.tar.gz
gsoc2013-evolution-85e4486c1c6ac2b8d60807117af8255d6daee61f.tar.bz2
gsoc2013-evolution-85e4486c1c6ac2b8d60807117af8255d6daee61f.tar.lz
gsoc2013-evolution-85e4486c1c6ac2b8d60807117af8255d6daee61f.tar.xz
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
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-table-sorted-variable.c2
1 files changed, 1 insertions, 1 deletions
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++;