diff options
-rw-r--r-- | widgets/e-table/ChangeLog | 5 | ||||
-rw-r--r-- | widgets/e-table/e-table-sorted-variable.c | 2 | ||||
-rw-r--r-- | widgets/table/e-table-sorted-variable.c | 2 |
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++; |