Commit cc570eae authored by Michael Meeks's avatar Michael Meeks Committed by Michael Meeks

fix.

2000-06-21  Michael Meeks  <michael@helixcode.com>

	* src/embeddable-grid.c (embeddable_grid_init_anon): fix.
parent 29136f4c
2000-06-21 Michael Meeks <michael@helixcode.com>
* src/embeddable-grid.c (embeddable_grid_init_anon): fix.
2000-06-20 Morten Welinder <terra@diku.dk>
* src/commands.c (cmd_ins_del_row_col_undo): Leak and assertion
......
2000-06-21 Michael Meeks <michael@helixcode.com>
* src/embeddable-grid.c (embeddable_grid_init_anon): fix.
2000-06-20 Morten Welinder <terra@diku.dk>
* src/commands.c (cmd_ins_del_row_col_undo): Leak and assertion
......
2000-06-21 Michael Meeks <michael@helixcode.com>
* src/embeddable-grid.c (embeddable_grid_init_anon): fix.
2000-06-20 Morten Welinder <terra@diku.dk>
* src/commands.c (cmd_ins_del_row_col_undo): Leak and assertion
......
2000-06-21 Michael Meeks <michael@helixcode.com>
* src/embeddable-grid.c (embeddable_grid_init_anon): fix.
2000-06-20 Morten Welinder <terra@diku.dk>
* src/commands.c (cmd_ins_del_row_col_undo): Leak and assertion
......
2000-06-21 Michael Meeks <michael@helixcode.com>
* src/embeddable-grid.c (embeddable_grid_init_anon): fix.
2000-06-20 Morten Welinder <terra@diku.dk>
* src/commands.c (cmd_ins_del_row_col_undo): Leak and assertion
......
2000-06-21 Michael Meeks <michael@helixcode.com>
* src/embeddable-grid.c (embeddable_grid_init_anon): fix.
2000-06-20 Morten Welinder <terra@diku.dk>
* src/commands.c (cmd_ins_del_row_col_undo): Leak and assertion
......
2000-06-21 Michael Meeks <michael@helixcode.com>
* src/embeddable-grid.c (embeddable_grid_init_anon): fix.
2000-06-20 Morten Welinder <terra@diku.dk>
* src/commands.c (cmd_ins_del_row_col_undo): Leak and assertion
......
......@@ -162,7 +162,15 @@ create_embeddable_grid (BonoboObject *object)
static void
embeddable_grid_init_anon (EmbeddableGrid *eg)
{
GList *sheets;
eg->workbook = workbook_new_with_sheets (1);
sheets = workbook_sheets (eg->workbook);
g_return_if_fail (sheets != NULL &&
sheets->data != NULL);
eg->sheet = sheets->data;
g_list_free (sheets);
/*
* Workaround code. Sheets are born with a sheet_view,
......@@ -171,9 +179,10 @@ embeddable_grid_init_anon (EmbeddableGrid *eg)
* When sheet_new semantics change (see TODO), the code below
* will warn about this condition to remove this piece of code
*/
if (eg->sheet->sheet_views != NULL){
sheet_destroy_sheet_view (eg->sheet, SHEET_VIEW (eg->sheet->sheet_views->data));
} else
if (eg->sheet->sheet_views)
sheet_destroy_sheet_view (eg->sheet,
SHEET_VIEW (eg->sheet->sheet_views->data));
else
g_error ("Remove workaround code here");
}
......
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