#807167 Gnumeric: Names in functions give #NAME after save and reload

Package:
gnumeric
Source:
gnumeric
Description:
spreadsheet application for GNOME - main program
Submitter:
Wookey
Date:
2015-12-07 08:00:04 UTC
Severity:
normal
#807167#5
Date:
2015-12-06 12:10:30 UTC
From:
To:
I am very pleased to see that gnumeric has named cell references now -
very handy, and lets it load some fancy sheets from elsewhere it could
not handle last time I looked.

However there seems to be a problem saving and reloading such references in ODF:

If I have a function which refers to two named cells (housedepth and housewidth) like this:
=housedepth*housewidth
everything is good.

But if I save as .ods and reload the sheet all the cells with such
references in say '#NAME'. And the functions now look like:
=[]housedepth*[]housewidth

(when they were entered as =housedepth*housewidth )

Removing the square brackets makes everything work again, but clearly
there is some kind of problem with these being reformatted on
save/reload, and apparently an empty name not working as 'this sheet'.

I tested these formats:
ODF 1.2 extended conformance
ODF 1.2 strict conformance
ISO/IEC 29500
Gnumeric

The last two will correctly save and reload named cells
The first two will add '[]' to all name references, and then complain on reload that
'name does not exist in workbook':
e.g. Unable to parse '[]floorarea*2.25' ('Name 'floorarea' does not exist in workbook')
Now floorarea does exist in workbook 'Calcs' (sheet3), but not in sheet <empty string>.

I'm not sure if this is a save or reload problem.

Is there something I can do to fix this behaviour or do I just need to
avoid using ODF with named references?

#807167#10
Date:
2015-12-06 18:32:36 UTC
From:
To:
+++ Debian Bug Tracking System [2015-12-06 12:15 +0000]:

Attached is an example minimal spreadsheet which illustrates the
issue. It seems to be easy to reproduce.

Wookey

#807167#15
Date:
2015-12-07 07:35:22 UTC
From:
To:
The issue can't be reproduced with gnumeric-1.12.25. Might be related
to https://bugzilla.gnome.org/show_bug.cgi?id=750627