From 460af4adbaebd961c382fe1aa4c3e50b7508dbfb Mon Sep 17 00:00:00 2001 From: Morten Welinder Date: Wed, 10 Apr 2002 15:54:29 +0000 Subject: [PATCH] Retry commit. --- src/parse-util.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/parse-util.c b/src/parse-util.c index 40cf72420..b76c866d2 100644 --- a/src/parse-util.c +++ b/src/parse-util.c @@ -86,7 +86,11 @@ 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) { - /* pp->wb==NULL happens for the leak printer. */ + if (pp->wb == NULL && pp->sheet == NULL) { + /* For the expression leak printer. */ + return g_strconcat ("'?'|", buffer, NULL); + } + if (pp->wb == NULL || sheet->workbook == pp->wb) return g_strconcat (sheet->name_quoted, "!", buffer, NULL); return g_strconcat ("[", sheet->workbook->filename, "]", -- GitLab