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,11 +356,11 @@ find_cells_that_match (Sheet *sheet, Value *database, ...@@ -356,11 +356,11 @@ find_cells_that_match (Sheet *sheet, Value *database,
Cell const *tmp = sheet_cell_get (sheet, Cell const *tmp = sheet_cell_get (sheet,
cond->column, row); cond->column, row);
if (tmp != NULL && tmp->value != NULL) { if (tmp == NULL ||
if (!cond->fun (tmp->value, cond->x)) { tmp->value == NULL ||
!cond->fun (tmp->value, cond->x)) {
add_flag = FALSE; add_flag = FALSE;
break; 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> 2001-10-16 Jukka-Pekka Iivonen <jiivonen@hutcs.cs.hut.fi>
* fn-financial.c (coupdaybs): Fixed the frequency 1 for basis 0 * fn-financial.c (coupdaybs): Fixed the frequency 1 for basis 0
......
...@@ -356,11 +356,11 @@ find_cells_that_match (Sheet *sheet, Value *database, ...@@ -356,11 +356,11 @@ find_cells_that_match (Sheet *sheet, Value *database,
Cell const *tmp = sheet_cell_get (sheet, Cell const *tmp = sheet_cell_get (sheet,
cond->column, row); cond->column, row);
if (tmp != NULL && tmp->value != NULL) { if (tmp == NULL ||
if (!cond->fun (tmp->value, cond->x)) { tmp->value == NULL ||
!cond->fun (tmp->value, cond->x)) {
add_flag = FALSE; add_flag = FALSE;
break; 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