Commit 72eeb832 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg
Browse files

Patch for bugs 5490 and 7743. We need better format recognition soon.


Patch for bugs 5490 and 7743.
We need better format recognition soon.

2000-03-23  Jody Goldberg <jgoldberg@home.com>

	* src/cell.c (cell_set_text_simple) : Do NOT set the entered text
	  when importing non string values.  There are still gotchas
	  elsewhere. eg enter 90 format to current and edit box shows
	  something that we can not parse.
parent 75f5273b
2000-03-23 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_set_text_simple) : Do NOT set the entered text
when importing non string values. There are still gotchas
elsewhere. eg enter 90 format to current and edit box shows
something that we can not parse.
2000-04-23 Morten Welinder <terra@diku.dk>
* src/history.c (history_menu_remove_items): Don't crash.
......
2000-03-23 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_set_text_simple) : Do NOT set the entered text
when importing non string values. There are still gotchas
elsewhere. eg enter 90 format to current and edit box shows
something that we can not parse.
2000-04-23 Morten Welinder <terra@diku.dk>
* src/history.c (history_menu_remove_items): Don't crash.
......
2000-03-23 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_set_text_simple) : Do NOT set the entered text
when importing non string values. There are still gotchas
elsewhere. eg enter 90 format to current and edit box shows
something that we can not parse.
2000-04-23 Morten Welinder <terra@diku.dk>
* src/history.c (history_menu_remove_items): Don't crash.
......
2000-03-23 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_set_text_simple) : Do NOT set the entered text
when importing non string values. There are still gotchas
elsewhere. eg enter 90 format to current and edit box shows
something that we can not parse.
2000-04-23 Morten Welinder <terra@diku.dk>
* src/history.c (history_menu_remove_items): Don't crash.
......
2000-03-23 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_set_text_simple) : Do NOT set the entered text
when importing non string values. There are still gotchas
elsewhere. eg enter 90 format to current and edit box shows
something that we can not parse.
2000-04-23 Morten Welinder <terra@diku.dk>
* src/history.c (history_menu_remove_items): Don't crash.
......
2000-03-23 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_set_text_simple) : Do NOT set the entered text
when importing non string values. There are still gotchas
elsewhere. eg enter 90 format to current and edit box shows
something that we can not parse.
2000-04-23 Morten Welinder <terra@diku.dk>
* src/history.c (history_menu_remove_items): Don't crash.
......
2000-03-23 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_set_text_simple) : Do NOT set the entered text
when importing non string values. There are still gotchas
elsewhere. eg enter 90 format to current and edit box shows
something that we can not parse.
2000-04-23 Morten Welinder <terra@diku.dk>
* src/history.c (history_menu_remove_items): Don't crash.
......
......@@ -514,24 +514,27 @@ cell_set_text_simple (Cell *cell, const char *text)
cell->value = value_new_float ((float_t)d);
}
#if 0
if (cell->value == NULL) {
/* Check to see if it matches via current format */
#if 0
if (format_match (text, float_t *v, char **format))
{
}
#endif
}
#endif
if (cell->value == NULL) {
/* It is text. Ignore leading single quotes */
cell->value = value_new_string (text[0] == '\'' ? text+1 : text);
cell->entered_text = string_get (text);
} else {
/* NOTE : do not set the entered text, we can not always parse
* the result when we reimport later
*/
cell->entered_text = NULL;
}
cell_render_value (cell);
cell->entered_text = (cell->text != NULL)
? string_ref (cell->text)
: string_get (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