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 627690 - ** (gnumeric:19078): WARNING **: dropping fill with missing image
** (gnumeric:19078): WARNING **: dropping fill with missing image
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Charting
git master
Other Linux
: Normal normal
: ---
Assigned To: Jean Bréfort
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2010-08-23 04:23 UTC by Andreas J. Guelzow
Modified: 2010-08-23 20:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (3.88 KB, patch)
2010-08-23 16:46 UTC, Jean Bréfort
committed Details | Review

Description Andreas J. Guelzow 2010-08-23 04:23:30 UTC
open samples/chart-tests.gnumeric
save it again.

The critical ** (gnumeric:19078): WARNING **: dropping fill with missing image appears.

if you open the file again and resave, the WARNING occurs again.
Comment 1 Jean Bréfort 2010-08-23 05:34:56 UTC
Point 5 in the Fill page sample is said to have an image fill, but no image is selected.
Comment 2 Jean Bréfort 2010-08-23 14:19:19 UTC
Andreas, note that this is not a critical, just a warning.
I don't know what to do there. Image filling without image is equivalent to no filling. Do we need a warning? Should we check the style and come back to GO_STYE_FILL_NONE when this occurs.

Btw, centered image filling has been removed at some point, I ignore why (actually I don't remember). Should it be reimplemented? May be the issue was that the image does not always really fill the surface in that case, it might be not large enough.
Comment 3 Morten Welinder 2010-08-23 15:54:09 UTC
Why did we write this fill-with-no-image to begin with?
If such a thing was entered, then load should recreate it silently.
Comment 4 Andreas J. Guelzow 2010-08-23 15:55:37 UTC
Jean, I am not sure what we are doing. But we shouldn't really have any warnings in the console. If teh warning is important it should be in the GUI.

I would prefer of course if we could never get in the situation of seeing this warning. I am more concerned with the fact that the warning remains on future reload/resave cycles. If there is a problem with a missing file we should fix it on save, ie. the fill style in the saved file should be consistent, I think.
Comment 5 Jean Bréfort 2010-08-23 16:46:02 UTC
Created attachment 168568 [details] [review]
Proposed patch

At least, with the patch an image fill without mage would not survive serialization (both save and load).
It also reintroduce centered image fill.
Comment 6 Andreas J. Guelzow 2010-08-23 20:26:27 UTC
Review of attachment 168568 [details] [review]:

looks good, please commit
Comment 7 Jean Bréfort 2010-08-23 20:48:13 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.