Commit 9ac75128 authored by Arturo Espinosa's avatar Arturo Espinosa

Range iterator fixed. Lots of new functions work now -mig

parent 1716fec2
......@@ -120,16 +120,16 @@ function_iterate_argument_values (Sheet *sheet,
for (; result && expr_node_list; expr_node_list = expr_node_list->next){
ExprTree *tree = (ExprTree *) expr_node_list->data;
Value *value;
Value *val;
value = eval_expr (sheet, tree, eval_col, eval_row, error_string);
val = eval_expr (sheet, tree, eval_col, eval_row, error_string);
result = function_iterate_do_value (
sheet, callback, callback_closure,
eval_col, eval_row, value,
eval_col, eval_row, val,
error_string);
value_release (value);
value_release (val);
}
return result;
}
......
......@@ -1213,7 +1213,7 @@ sheet_cell_foreach_range (Sheet *sheet, int only_existing,
GList *row;
int last_col_gen = -1, last_row_gen = -1;
int cont;
g_return_val_if_fail (sheet != NULL, FALSE);
g_return_val_if_fail (IS_SHEET (sheet), FALSE);
g_return_val_if_fail (callback != NULL, FALSE);
......@@ -1243,10 +1243,10 @@ sheet_cell_foreach_range (Sheet *sheet, int only_existing,
last_col_gen = ci->pos;
last_row_gen = -1;
for (row = (GList *) ci->data; row; row = row->data){
for (row = (GList *) ci->data; row; row = row->next){
Cell *cell = (Cell *) row->data;
int row_pos = cell->row->pos;
if (row_pos < start_row)
continue;
......@@ -1299,7 +1299,7 @@ CRowSort (gconstpointer a, gconstpointer b)
Cell *ca = (Cell *) a;
Cell *cb = (Cell *) b;
return cb->row->pos - ca->row->pos;
return ca->row->pos - cb->row->pos;
}
Cell *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment