Commit e3352699 authored by Andreas J. Guelzow's avatar Andreas J. Guelzow Committed by Andreas J. Guelzow
Browse files

Undefined cells should not satisfy criteria.

2001-10-17  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* fn-database.c (find_cells_that_match) : Undefined cells should not satisfy
	  criteria.
parent 417cf8ca
......@@ -356,13 +356,13 @@ find_cells_that_match (Sheet *sheet, Value *database,
Cell const *tmp = sheet_cell_get (sheet,
cond->column, row);
if (tmp != NULL && tmp->value != NULL) {
if (!cond->fun (tmp->value, cond->x)) {
if (tmp == NULL ||
tmp->value == NULL ||
!cond->fun (tmp->value, cond->x)) {
add_flag = FALSE;
break;
}
}
}
if (add_flag)
break;
......
2001-10-17 Andreas J. Guelzow <aguelzow@taliesin.ca>
* fn-database.c (find_cells_that_match) : Undefined cells should not satisfy
criteria.
2001-10-16 Jukka-Pekka Iivonen <jiivonen@hutcs.cs.hut.fi>
* fn-financial.c (coupdaybs): Fixed the frequency 1 for basis 0
......
......@@ -356,13 +356,13 @@ find_cells_that_match (Sheet *sheet, Value *database,
Cell const *tmp = sheet_cell_get (sheet,
cond->column, row);
if (tmp != NULL && tmp->value != NULL) {
if (!cond->fun (tmp->value, cond->x)) {
if (tmp == NULL ||
tmp->value == NULL ||
!cond->fun (tmp->value, cond->x)) {
add_flag = FALSE;
break;
}
}
}
if (add_flag)
break;
......
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