Commit 1b9a3908 authored by Miguel de Icaza's avatar Miguel de Icaza Committed by Arturo Espinosa
Browse files

row->data might be NULL. (cell_unregister_span): row->data might be NULL.

1998-09-17  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/cellspan.c (row_cell_get_displayed_at): row->data might be NULL.
	(cell_unregister_span): row->data might be NULL.

	* src/main.c (main): Add support to load more than one file from
	the command line.  Drop requirement for --file option.
parent 1166bb98
1998-09-17 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/cellspan.c (row_cell_get_displayed_at): row->data might be NULL.
(cell_unregister_span): row->data might be NULL.
* src/main.c (main): Add support to load more than one file from
the command line. Drop requirement for --file option.
......
1998-09-17 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/cellspan.c (row_cell_get_displayed_at): row->data might be NULL.
(cell_unregister_span): row->data might be NULL.
* src/main.c (main): Add support to load more than one file from
the command line. Drop requirement for --file option.
......
1998-09-17 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/cellspan.c (row_cell_get_displayed_at): row->data might be NULL.
(cell_unregister_span): row->data might be NULL.
* src/main.c (main): Add support to load more than one file from
the command line. Drop requirement for --file option.
......
1998-09-17 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/cellspan.c (row_cell_get_displayed_at): row->data might be NULL.
(cell_unregister_span): row->data might be NULL.
* src/main.c (main): Add support to load more than one file from
the command line. Drop requirement for --file option.
......
......@@ -133,7 +133,9 @@ cell_unregister_span (Cell *cell)
c.cell = cell;
c.list_of_keys = NULL;
g_hash_table_foreach (cell->row->data, assemble_unregister_span_list, &c);
if (cell->row->data)
g_hash_table_foreach (cell->row->data, assemble_unregister_span_list, &c);
for (l = c.list_of_keys; l; l = l->next){
int *key = l->data;
......@@ -154,11 +156,10 @@ cell_unregister_span (Cell *cell)
Cell *
row_cell_get_displayed_at (ColRowInfo *ri, int col)
{
Cell *cell;
g_return_val_if_fail (ri != NULL, NULL);
cell = g_hash_table_lookup (ri->data, &col);
return cell;
if (ri->data)
return g_hash_table_lookup (ri->data, &col);
else
return NULL;
}
......@@ -1204,7 +1204,7 @@ static xmlNodePtr writeXmlSheet(parseXmlContextPtr ctxt, Sheet *sheet) {
* Rows informations.
*/
rows = xmlNewChild(cur, ctxt->ns, "Rows", NULL);
l = sheet->cols_info;
l = sheet->rows_info;
while (l) {
child = writeXmlColRowInfo(ctxt, l->data, 0);
if (child) xmlAddChild(rows, child);
......
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