Commit 451b2fd3 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Doh! Fix the rest of the paste crashes.

Doh!
Fix the rest of the paste crashes.

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

	* src/cell.c (cell_copy) : Ref the format if one exists.
parent 56f885ff
2000-05-19 Jody Goldberg <jgoldberg@home.com> 2000-05-19 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_copy) : Ref the format if one exists.
* src/colrow.c (cb_set_row_height) : Only set the height if it * src/colrow.c (cb_set_row_height) : Only set the height if it
changed. changed.
......
2000-05-19 Jody Goldberg <jgoldberg@home.com> 2000-05-19 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_copy) : Ref the format if one exists.
* src/colrow.c (cb_set_row_height) : Only set the height if it * src/colrow.c (cb_set_row_height) : Only set the height if it
changed. changed.
......
2000-05-19 Jody Goldberg <jgoldberg@home.com> 2000-05-19 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_copy) : Ref the format if one exists.
* src/colrow.c (cb_set_row_height) : Only set the height if it * src/colrow.c (cb_set_row_height) : Only set the height if it
changed. changed.
......
2000-05-19 Jody Goldberg <jgoldberg@home.com> 2000-05-19 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_copy) : Ref the format if one exists.
* src/colrow.c (cb_set_row_height) : Only set the height if it * src/colrow.c (cb_set_row_height) : Only set the height if it
changed. changed.
......
2000-05-19 Jody Goldberg <jgoldberg@home.com> 2000-05-19 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_copy) : Ref the format if one exists.
* src/colrow.c (cb_set_row_height) : Only set the height if it * src/colrow.c (cb_set_row_height) : Only set the height if it
changed. changed.
......
2000-05-19 Jody Goldberg <jgoldberg@home.com> 2000-05-19 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_copy) : Ref the format if one exists.
* src/colrow.c (cb_set_row_height) : Only set the height if it * src/colrow.c (cb_set_row_height) : Only set the height if it
changed. changed.
......
2000-05-19 Jody Goldberg <jgoldberg@home.com> 2000-05-19 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_copy) : Ref the format if one exists.
* src/colrow.c (cb_set_row_height) : Only set the height if it * src/colrow.c (cb_set_row_height) : Only set the height if it
changed. changed.
......
...@@ -131,6 +131,9 @@ cell_copy (Cell const *cell) ...@@ -131,6 +131,9 @@ cell_copy (Cell const *cell)
? value_duplicate (new_cell->value) ? value_duplicate (new_cell->value)
: value_new_empty (); : value_new_empty ();
if (cell->format)
style_format_ref (cell->format);
if (cell->comment) { if (cell->comment) {
new_cell->comment = NULL; new_cell->comment = NULL;
cell_set_comment (new_cell, cell->comment->comment->str); cell_set_comment (new_cell, cell->comment->comment->str);
......
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