Apache OpenOffice (AOO) Bugzilla – Issue 122525
[SVG import] linear gradient looks weird
Last modified: 2022-10-28 12:54:19 UTC
Created attachment 80833 [details] image showing the behaviour XP, AOO400m2(Build:9701) - Rev. 1489073 2013-06-03 13:48:37 (Mo, 03 Jun 2013) Insert->Picture->From File linear gradient from top to bottom looks weird weird(rasterisedlike) normally linear gradient seems to work but not in this drawing
Created attachment 80834 [details] test file
ALG: Confirmed and grepping. Thanks for the example!
ALG: It's a pure visualization task, the import is not involved but imports the gradient with all precision. Rendering currently has to paint single circles in the VCLRenderer, thus a step count is calculated dependent from the discrete target resolution. That calculation currently only uses the X-Direction, this explains why it works in X but not in Y. What is really wanted here is to use the maximum of both distances. Changing and checking.
ALG: Future things: With system-dependent renderers the gradients will be painted directly as much as possible. The Break on gradient SVGs currently uses the decompose as base to create masked single circles, but as soon as SVG gradients will be implemented (which are in the ODF already) this will also change. Currently an awful lot of DrawObjects needs to be created when Breaking SVG to DrawObjects. Note: Need to check Break also in this example.
ALG: Corrected rendering and decomposition, works, comitted, done.
"alg" committed SVN revision 1493049 into trunk: i122525 use X and Y for unit evaluation