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

implemenent a bit of just in time rendering. ditto. ditto.

2001-09-18  Jody Goldberg <jgoldberg@home.com>

	* src/cell-draw.c (cell_draw) : implemenent a bit of just in time
	  rendering.
	* src/print-cell.c (print_cell) : ditto.
	* src/cell.c (cell_eval_content) : ditto.
parent c062fecd
2001-09-18 Jody Goldberg <jgoldberg@home.com>
* src/cell-draw.c (cell_draw) : implemenent a bit of just in time
rendering.
* src/print-cell.c (print_cell) : ditto.
* src/cell.c (cell_eval_content) : ditto.
2001-09-18 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.c (scg_scrollbar_config) : Fix old off by 1
......
2001-09-18 Jody Goldberg <jgoldberg@home.com>
* src/cell-draw.c (cell_draw) : implemenent a bit of just in time
rendering.
* src/print-cell.c (print_cell) : ditto.
* src/cell.c (cell_eval_content) : ditto.
2001-09-18 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.c (scg_scrollbar_config) : Fix old off by 1
......
2001-09-18 Jody Goldberg <jgoldberg@home.com>
* src/cell-draw.c (cell_draw) : implemenent a bit of just in time
rendering.
* src/print-cell.c (print_cell) : ditto.
* src/cell.c (cell_eval_content) : ditto.
2001-09-18 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.c (scg_scrollbar_config) : Fix old off by 1
......
2001-09-18 Jody Goldberg <jgoldberg@home.com>
* src/cell-draw.c (cell_draw) : implemenent a bit of just in time
rendering.
* src/print-cell.c (print_cell) : ditto.
* src/cell.c (cell_eval_content) : ditto.
2001-09-18 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.c (scg_scrollbar_config) : Fix old off by 1
......
......@@ -177,7 +177,9 @@ cell_draw (Cell const *cell, MStyle const *mstyle,
(!sheet->display_formulas || !cell_has_expr (cell)))
return;
g_return_if_fail (cell->rendered_value);
if (cell->rendered_value == NULL)
cell_render_value ((Cell *)cell, TRUE);
g_return_if_fail (cell->rendered_value->rendered_text);
if (cell->rendered_value->rendered_text->str == NULL) {
......
......@@ -254,12 +254,14 @@ iterate :
value_release (cell->value);
cell->value = v;
/* Optimization : only render if it had already been rendered.
* If it had not been rendered yet, then we're probably not
* looking at this sheet.
/* Optimization : Since we don't span calculated cells
* it is ok, to wipe rendered values. The drawing routine
* will handle it.
*/
if (cell->rendered_value != NULL)
cell_render_value (cell, TRUE);
if (cell->rendered_value != NULL) {
rendered_value_destroy (cell->rendered_value);
cell->rendered_value = NULL;
}
}
if (iterating == cell)
......
......@@ -419,7 +419,9 @@ print_cell (Cell const *cell, MStyle const *mstyle, GnomePrintContext *context,
(!sheet->display_formulas || !cell_has_expr (cell)))
return;
g_return_if_fail (cell->rendered_value);
if (cell->rendered_value == NULL)
cell_render_value ((Cell *)cell, TRUE);
g_return_if_fail (cell->rendered_value->rendered_text);
if (cell->rendered_value->rendered_text->str == NULL) {
......
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