Commit 8866c3e4 authored by Morten Welinder's avatar Morten Welinder

SheetView: try not to crash every time we make one.

parent d5b2f223
......@@ -265,6 +265,8 @@ gnm_sheet_view_init (GObject *object)
{
SheetView *sv = GNM_SHEET_VIEW (object);
sv->controls = g_ptr_array_new ();
/* Init menu states */
sv->enable_insert_rows = TRUE;
sv->enable_insert_cols = TRUE;
......@@ -285,8 +287,6 @@ gnm_sheet_view_init (GObject *object)
sv->selection_mode = GNM_SELECTION_MODE_ADD;
sv->selections_simplified = NULL;
sv_selection_add_pos (sv, 0, 0, GNM_SELECTION_MODE_ADD);
sv->controls = g_ptr_array_new ();
}
GSF_CLASS (SheetView, gnm_sheet_view,
......
......@@ -2183,7 +2183,8 @@ xml_sax_cell_content (GsfXMLIn *xin, G_GNUC_UNUSED GsfXMLBlob *blob)
GINT_TO_POINTER (expr_id));
if (texpr && gnm_expr_top_is_array_corner (texpr)) {
g_printerr ("Shared array formula -- how did that happen?\n");
g_printerr ("Shared array formula for %s -- how did that happen?\n",
cell ? cell_name (cell) : "clipboard");
texpr = gnm_expr_top_new (gnm_expr_copy (texpr->expr));
expr_id = -1;
} else if (texpr) {
......
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