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
This commit is contained in:
committed by
Chris Lahey
parent
252454c7ab
commit
c512a22478
@ -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
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user