Commit bde3b4c4 authored by Morten Welinder's avatar Morten Welinder

Attempt to fix leak printing crash.

parent a667a6aa
......@@ -86,7 +86,8 @@ cellref_name (CellRef const *cell_ref, ParsePos const *pp, gboolean no_sheetname
/* If it is a non-local reference, add the path to the external sheet */
if (sheet != NULL && !no_sheetname) {
if (sheet->workbook == pp->wb)
/* pp->wb==NULL happens for the leak printer. */
if (pp->wb == NULL || sheet->workbook == pp->wb)
return g_strconcat (sheet->name_quoted, "!", buffer, NULL);
return g_strconcat ("[", sheet->workbook->filename, "]",
sheet->name_quoted, "!", buffer, NULL);
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