Commit fad57259 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

From Juan Pablo Mendoza <pablo_juan@yahoo.com>


2001-06-03  Jody Goldberg <jgoldberg@home.com>
	From Juan Pablo Mendoza <pablo_juan@yahoo.com>

	* rendered-value.c (rendered_value_get_text): Add a check for
	  rendered value != NULL.
	(cell_get_rendered_text): Add check for redered value == NULL

2001-06-03  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (workbook_expr_relocate) : flag all sheets as needing
	  status updates.
parent 229358f8
2001-06-03 Jody Goldberg <jgoldberg@home.com>
From Juan Pablo Mendoza <pablo_juan@yahoo.com>
* rendered-value.c (rendered_value_get_text): Add a check for
rendered value != NULL.
(cell_get_rendered_text): Add check for redered value == NULL
2001-06-03 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_expr_relocate) : flag all sheets as needing
status updates.
2001-06-03 Zbigniew Chyla <cyba@gnome.pl>
Updating i/o progress while saving Gnumeric XML file.
......
2001-06-03 Jody Goldberg <jgoldberg@home.com>
From Juan Pablo Mendoza <pablo_juan@yahoo.com>
* rendered-value.c (rendered_value_get_text): Add a check for
rendered value != NULL.
(cell_get_rendered_text): Add check for redered value == NULL
2001-06-03 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_expr_relocate) : flag all sheets as needing
status updates.
2001-06-03 Zbigniew Chyla <cyba@gnome.pl>
Updating i/o progress while saving Gnumeric XML file.
......
2001-06-03 Jody Goldberg <jgoldberg@home.com>
From Juan Pablo Mendoza <pablo_juan@yahoo.com>
* rendered-value.c (rendered_value_get_text): Add a check for
rendered value != NULL.
(cell_get_rendered_text): Add check for redered value == NULL
2001-06-03 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_expr_relocate) : flag all sheets as needing
status updates.
2001-06-03 Zbigniew Chyla <cyba@gnome.pl>
Updating i/o progress while saving Gnumeric XML file.
......
2001-06-03 Jody Goldberg <jgoldberg@home.com>
From Juan Pablo Mendoza <pablo_juan@yahoo.com>
* rendered-value.c (rendered_value_get_text): Add a check for
rendered value != NULL.
(cell_get_rendered_text): Add check for redered value == NULL
2001-06-03 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_expr_relocate) : flag all sheets as needing
status updates.
2001-06-03 Zbigniew Chyla <cyba@gnome.pl>
Updating i/o progress while saving Gnumeric XML file.
......
2001-06-03 Jody Goldberg <jgoldberg@home.com>
From Juan Pablo Mendoza <pablo_juan@yahoo.com>
* rendered-value.c (rendered_value_get_text): Add a check for
rendered value != NULL.
(cell_get_rendered_text): Add check for redered value == NULL
2001-06-03 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_expr_relocate) : flag all sheets as needing
status updates.
2001-06-03 Zbigniew Chyla <cyba@gnome.pl>
Updating i/o progress while saving Gnumeric XML file.
......
......@@ -264,7 +264,7 @@ rendered_value_calc_size_ext (Cell const *cell, MStyle *mstyle)
char *
rendered_value_get_text (RenderedValue const *rv)
{
g_return_val_if_fail (rv->rendered_text != NULL, g_strdup ("ERROR"));
g_return_val_if_fail (rv != NULL && rv->rendered_text != NULL, g_strdup ("ERROR"));
return g_strdup (rv->rendered_text->str);
}
......@@ -282,6 +282,10 @@ char *
cell_get_rendered_text (Cell const *cell)
{
g_return_val_if_fail (cell != NULL, g_strdup("ERROR"));
/* If this fails it is likely that you need to do a sheet_update */
g_return_val_if_fail (cell->rendered_value != NULL, g_strdup("ERROR"));
return rendered_value_get_text (cell->rendered_value);
}
......
......@@ -677,6 +677,7 @@ workbook_expr_relocate (Workbook *wb, ExprRelocateInfo const *info)
{
GSList *dependents, *l;
GSList *undo_info = NULL;
int i;
if (info->col_offset == 0 && info->row_offset == 0 &&
info->origin_sheet == info->target_sheet)
......@@ -728,6 +729,11 @@ workbook_expr_relocate (Workbook *wb, ExprRelocateInfo const *info)
g_slist_free (dependents);
/* flag all sheets to update status line given than we may have moved things */
for (i = wb->sheets->len; i-- > 0 ;)
sheet_flag_status_update_range (
g_ptr_array_index (wb->sheets, i), NULL);
return undo_info;
}
......
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