diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-08-24 06:59:09 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-08-24 06:59:09 +0800 |
commit | c512a22478f03d4c3b8474eb8d39bc3445ce077a (patch) | |
tree | 0d1a192deace5197a79453b20556833196a2bf35 /widgets | |
parent | 252454c7ab52055618878ec439c4f28e34305bb1 (diff) | |
download | gsoc2013-evolution-c512a22478f03d4c3b8474eb8d39bc3445ce077a.tar.gz gsoc2013-evolution-c512a22478f03d4c3b8474eb8d39bc3445ce077a.tar.zst gsoc2013-evolution-c512a22478f03d4c3b8474eb8d39bc3445ce077a.zip |
Fixed a bug in e_table_subset_variable_increment that causes problems with
2000-08-23 Christopher James Lahey <clahey@helixcode.com>
* e-table-subset-variable.c: Fixed a bug in
e_table_subset_variable_increment that causes problems with
ETree's. Specifically, when you incremented at position x, the
row x didn't get incremented as it should (s/>/>=/.)
svn path=/trunk/; revision=4994
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/e-table/ChangeLog | 7 | ||||
-rw-r--r-- | widgets/e-table/e-table-subset-variable.c | 4 | ||||
-rw-r--r-- | widgets/table/e-table-subset-variable.c | 4 |
3 files changed, 11 insertions, 4 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog index 36725bb8be..67ea4c155c 100644 --- a/widgets/e-table/ChangeLog +++ b/widgets/e-table/ChangeLog @@ -1,3 +1,10 @@ +2000-08-23 Christopher James Lahey <clahey@helixcode.com> + + * e-table-subset-variable.c: Fixed a bug in + e_table_subset_variable_increment that causes problems with + ETree's. Specifically, when you incremented at position x, the + row x didn't get incremented as it should (s/>/>=/.) + 2000-08-22 Chris Toshok <toshok@helixcode.com> * Makefile.am (icons): remove tree-expanded.xpm and diff --git a/widgets/e-table/e-table-subset-variable.c b/widgets/e-table/e-table-subset-variable.c index d429604301..11b9c79d32 100644 --- a/widgets/e-table/e-table-subset-variable.c +++ b/widgets/e-table/e-table-subset-variable.c @@ -162,7 +162,7 @@ e_table_subset_variable_increment (ETableSubsetVariable *etssv, int i; ETableSubset *etss = E_TABLE_SUBSET(etssv); for (i = 0; i < etss->n_map; i++) { - if (etss->map_table[i] > position) + if (etss->map_table[i] >= position) etss->map_table[i] += amount; } } @@ -175,7 +175,7 @@ e_table_subset_variable_decrement (ETableSubsetVariable *etssv, int i; ETableSubset *etss = E_TABLE_SUBSET(etssv); for (i = 0; i < etss->n_map; i++) { - if (etss->map_table[i] > position) + if (etss->map_table[i] >= position) etss->map_table[i] -= amount; } } diff --git a/widgets/table/e-table-subset-variable.c b/widgets/table/e-table-subset-variable.c index d429604301..11b9c79d32 100644 --- a/widgets/table/e-table-subset-variable.c +++ b/widgets/table/e-table-subset-variable.c @@ -162,7 +162,7 @@ e_table_subset_variable_increment (ETableSubsetVariable *etssv, int i; ETableSubset *etss = E_TABLE_SUBSET(etssv); for (i = 0; i < etss->n_map; i++) { - if (etss->map_table[i] > position) + if (etss->map_table[i] >= position) etss->map_table[i] += amount; } } @@ -175,7 +175,7 @@ e_table_subset_variable_decrement (ETableSubsetVariable *etssv, int i; ETableSubset *etss = E_TABLE_SUBSET(etssv); for (i = 0; i < etss->n_map; i++) { - if (etss->map_table[i] > position) + if (etss->map_table[i] >= position) etss->map_table[i] -= amount; } } |