Created attachment 136219 [details] Example with "automatic" and with step count = 3 In the step-count is set to "Automatic" LibreOffice writes the value 0 for attribute draw:gradient-step-count. See http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#property-draw_gradient-step-count "By default, the step count is automatically calculated based on the size and resolution of the filled area. A gradient step count of color interpretation shall be 3 or greater." LibreOffice uses the value 0 internally to track the case "Automatic". But it must not write it to file. In case "Automatic" LibreOffice must not write the attribute at all, so that the default case of the spec applies. [I thought that I had reported already, but I do not find it.]
Regina: since you assigned yourself (to fix the bug), let's put this one to ASSIGNED. If it was an error, don't hesitate to revert the status and reset the assignee.
A possible patch is in https://gerrit.libreoffice.org/#/c/42254/1 But it might be more appropriate to get a change in the specification. I have started a discussion on the mailing list of the TC. https://lists.oasis-open.org/archives/office/201709/msg00018.html
The TC has agreed to allow value 0 with the meaning of "default". https://issues.oasis-open.org/browse/OFFICE-3934 https://lists.oasis-open.org/archives/office/201710/msg00032.html
Many thanks to stay on this task - and finally solve it with zero coding effort :-). Let's close this ticket as NAB.