aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-subset-variable.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/e-table/e-table-subset-variable.c')
-rw-r--r--widgets/e-table/e-table-subset-variable.c4
1 files changed, 2 insertions, 2 deletions
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;
}
}