After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 735007 - Saved color axis are not shown/loaded
Saved color axis are not shown/loaded
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Charting
1.12.x
Other Linux
: Normal normal
: ---
Assigned To: Jean Bréfort
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2014-08-18 17:54 UTC by fxTW7H5rJ1gh
Modified: 2014-08-19 14:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Existing Color Axis is not shown (69.64 KB, image/png)
2014-08-18 17:54 UTC, fxTW7H5rJ1gh
Details
Example .map file (225 bytes, application/xml)
2014-08-19 12:24 UTC, fxTW7H5rJ1gh
Details

Description fxTW7H5rJ1gh 2014-08-18 17:54:56 UTC
Created attachment 283806 [details]
Existing Color Axis is not shown

When I save a colormap or manually create one in ~/.goffice/colormaps/ it is not selectable in Gnumeric. The dropdown menu in the chart's coloraxis's Colors tab is not listing it.

My test case is opening gnumeric, immediately clicking the graph button, choosing "Matrix", "Forward", "Color-Axis1", "Colors" and expanding the list where (for me) only the rainbow scale is shown.

When I create a new color axis and hit save, "strace -e file" shows me:

open("/home/me/.goffice/colormaps/e143baa7-0545-4782-b324-2ecddd939904.map", O_WRONLY|O_CREAT|O_EXCL, 0666) = -1 ENOENT (No such file or directory)

So I created that directory and tried again:

open("/home/me/.goffice/colormaps/95ac3b7c-e5f4-442f-bc71-b303c743eee6.map", O_WRONLY|O_CREAT|O_EXCL, 0666) = 12

and the file is there.

Relaunching gnumeric these are all mentions of "colormaps":

openat(AT_FDCWD, "/usr/share/goffice/0.10.17/colormaps", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/me/.goffice/colormaps", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 7
lstat("/home/me/.goffice/colormaps/95ac3b7c-e5f4-442f-bc71-b303c743eee6.map", {st_mode=S_IFREG|0644, st_size=263, ...}) = 0

But the color axis is not shown in the dropdown menu.

I am using 1.12.17 on 64 Bit Archlinux. https://www.archlinux.org/packages/extra/x86_64/gnumeric/
Comment 1 Jean Bréfort 2014-08-18 19:39:25 UTC
no warning like "[GogAxisColorMap]: Could not open file:///home/me/.goffice/colormaps/dd80f8df-3976-4313-9400-63d1c29522fd.map"?
Comment 2 fxTW7H5rJ1gh 2014-08-19 12:23:31 UTC
Nope. Here it is what we spoke about in IRC.

$ ls -l ~/.goffice/colormaps/3a196296-c34b-4412-adf0-802e0104600c.map 
-rw-r--r-- 1 me users 225 Aug 19 13:30 /home/me/.goffice/colormaps/3a196296-c34b-4412-adf0-802e0104600c.map

$ strace -o ~/gnumeric.strace gnumeric 
(gnumeric:28537): Gtk-WARNING **: Theme parsing error: gtk.css:101:18: Not using units is deprecated. Assuming 'px'.
(gnumeric:28537): Gtk-WARNING **: Theme parsing error: gtk.css:101:20: Not using units is deprecated. Assuming 'px'.

$ grep -i colormap ~/gnumeric.strace
openat(AT_FDCWD, "/usr/share/goffice/0.10.17/colormaps", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/me/.goffice/colormaps", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 7
lstat("/home/me/.goffice/colormaps/3a196296-c34b-4412-adf0-802e0104600c.map", {st_mode=S_IFREG|0644, st_size=225, ...}) = 0

$ xdg-mime query filetype 3a196296-c34b-4412-adf0-802e0104600c.map 
application/xml
Comment 3 fxTW7H5rJ1gh 2014-08-19 12:24:12 UTC
Created attachment 283872 [details]
Example .map file

The .map file I currently have in the directory. It is not specific to that file though. I created it within Gnumeric for testing this problem.
Comment 4 Jean Bréfort 2014-08-19 12:27:20 UTC
Works for me, so no idea why it doesn't for you.
Comment 5 Jean Bréfort 2014-08-19 14:10:26 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.