Commit 7d4e2b1a authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

When guessing what the entered text was for a supplied string value


2000-05-08  Jody Goldberg <jgoldberg@home.com>

	* src/cell.c (cell_set_value) : When guessing what the entered text
	  was for a supplied string value prepend a \' to ensure that the
	  value stays a string, and so that blank cells work better.
parent ea7ad36d
2000-05-08 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_set_value) : When guessing what the entered text
was for a supplied string value prepend a \' to ensure that the
value stays a string, and so that blank cells work better.
* src/sheet.c (sheet_cell_calc_span) : redraw the bounding range when
interupting spans.
(sheet_clear_region) : Respan ranges that were interupted by the
......
2000-05-08 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_set_value) : When guessing what the entered text
was for a supplied string value prepend a \' to ensure that the
value stays a string, and so that blank cells work better.
* src/sheet.c (sheet_cell_calc_span) : redraw the bounding range when
interupting spans.
(sheet_clear_region) : Respan ranges that were interupted by the
......
2000-05-08 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_set_value) : When guessing what the entered text
was for a supplied string value prepend a \' to ensure that the
value stays a string, and so that blank cells work better.
* src/sheet.c (sheet_cell_calc_span) : redraw the bounding range when
interupting spans.
(sheet_clear_region) : Respan ranges that were interupted by the
......
2000-05-08 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_set_value) : When guessing what the entered text
was for a supplied string value prepend a \' to ensure that the
value stays a string, and so that blank cells work better.
* src/sheet.c (sheet_cell_calc_span) : redraw the bounding range when
interupting spans.
(sheet_clear_region) : Respan ranges that were interupted by the
......
2000-05-08 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_set_value) : When guessing what the entered text
was for a supplied string value prepend a \' to ensure that the
value stays a string, and so that blank cells work better.
* src/sheet.c (sheet_cell_calc_span) : redraw the bounding range when
interupting spans.
(sheet_clear_region) : Respan ranges that were interupted by the
......
2000-05-08 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_set_value) : When guessing what the entered text
was for a supplied string value prepend a \' to ensure that the
value stays a string, and so that blank cells work better.
* src/sheet.c (sheet_cell_calc_span) : redraw the bounding range when
interupting spans.
(sheet_clear_region) : Respan ranges that were interupted by the
......
2000-05-08 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_set_value) : When guessing what the entered text
was for a supplied string value prepend a \' to ensure that the
value stays a string, and so that blank cells work better.
* src/sheet.c (sheet_cell_calc_span) : redraw the bounding range when
interupting spans.
(sheet_clear_region) : Respan ranges that were interupted by the
......
......@@ -406,7 +406,15 @@ cell_set_value (Cell *cell, Value *v, char const * optional_format)
cell->format = style_format_new (optional_format);
cell->value = v;
cell_render_value (cell);
cell->u.entered_text = string_ref (cell->rendered_value->rendered_text);
/* Be careful that a value passes as a string stays a string */
if (v->type == VALUE_STRING) {
/* TODO : add new string routine to avoid the extra copy */
char *tmp = g_strconcat ("\'", v->v_str.val->str, NULL);
cell->u.entered_text = string_get (tmp);
g_free (tmp);
} else
cell->u.entered_text = string_ref (cell->rendered_value->rendered_text);
}
/*
......
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