Apache OpenOffice (AOO) Bugzilla – Issue 17815
Gradient fill is changed on loading
Last modified: 2017-05-20 11:30:08 UTC
When you load the attached file, two boxes show in a different color than when saved. To view the error: * open the file * see the two blackish boxes, with red arrows pointing to them * click on any of those boxes * the format bar shows that they should rather be "GRADIENT 7" I tried many times re-coloring the boxes, saving the file to disk, and opening it again, but the result is always the same: those two boxes change color, and I cannot find any reason.
Created attachment 8232 [details] Drawing file
The filling of those two boxes is displayed as "[Gradient 7]". The brackets are visible because this used to be a gradient but it was deleted from the list in the area/gradient dialog. Now only the objects with this special filling still have it but the filling cannot be applied to new objects. What are you exactly doing when trying to recolor the boxes? Thanks in advance.
I wasn't doing anything special -- and I only tried to recolor the boxes after I found they had changed color. As to the deleted gradient, I didn't delete it -- or at least, I didn't do it on purpose! As a matter of fact, I had to invent a few different gradients -- one for the blue rectangles, another for the green ones, and I think there was a fourth one.
Sorry for not being exact enough: when I open the document I can see the two boxes with a black to white gradient filling which is named [Gradient7] in the area drop down box. When I select one of the boxes and change the fillin to another color or gradient this is easy done. No problems. Doesn't this work on your side? Are you using the drop down boxes in the object bar or are you using context menu/area for changes? Thanks for your help.
There are some important (I guess) differences with what happens in my machine. When I open the drawing (and no box is selected) the fill combo shows "Blue 7". When I click on one of the two black-to-white boxes, the drop down changes to "Gradient 7" --*without* the brackets-- and correctly colored green. However, the box is still black-to-white. If I use the drop down list to re-color the boxes, they change to the green gradient, but after saving the file and quitting the program, when I open the drawing again, the boxes are black-to-white again. To sum it up: the box is black-to-white horizontal gradient, but when selected, the fill drop down shows it to be "Gradient 7", which is a green-to-dark-green diagonal gradient -- there is no agreement between them. Changing the box to the correct color and saving the file doesn't fix the problem -- the box is back to the (wrong) fill the next time. Hope I managed to be clearer! Other boxes were colored "Gradient 8" (orange-to-brown) and "Gradient 9" (light-blue-to-blue) and those do show up correctly. I always use the drop down list to pick colors.
Thanks for the explicit description. But sadly I cannot reproduce the problem. When opening the posted file the boxes have a black to white gradient and this is indicated as [Gradient7]. Changing the gradient is no problem and it stays after saving the file. Since you have only problems with Gradient 7 (all fillings for the other boxes work well) it seems something went wrong when you defined Gradient 7. What about deleting the Gradient 7 entry in the area dialog and defining it new? The last idea from my side would be to attach the gradient list file user/config/standard.sog to see if something is wrong there. Thank you for your helping so far.
Created attachment 8303 [details] STANDARD.SOG, as required
Here is the STANDARD.SOG file; I'll try later deleting/re-creating the gradient.
I tried deleting "Gradient 7", re-creating it... and now a "[Gradient 10]" appears, which I cannot delete. The gradient doesn't show up when I right-click AREA and then GRADIENTS.
Set to new.
Thanks for posting the file. Now I can reproduce the mistake. Reassigned to Armin. How to reproduce: Load the bugdoc and then load the sog file. Change one of the boxes to (green) Gradient 7 and save the file. Reload: the box has a black gradient again.
AW->CL: Looking into the user's standard.sog shows that there is indeed a 'Gradient 7'. In a current version after loading the file tareas.sxd indeed the gradients are loaded, thus "Gradient 7", "Gradient 8" and "Gradient 9" are indeed defined, but not used. In content.xml there are 2 references to 'gradient 7' which seem not to be solved on load time. Maybe standard.sog needs to be loaded before importing a user file when the user has added the gradients to the the *.sog file? Is this done?
AW: Reassigned to cl
will have a look
Created attachment 15737 [details] also wrong gradient on load
Created attachment 15738 [details] same problem also in the xml version
attached files from duplicate issue 29202
retargeted due to lack of resources
*** Issue 29202 has been marked as a duplicate of this issue. ***
Please have also a look to issue 29202. It's duplicate to this one.
Reset assigne to the default "issues@openoffice.apache.org".