Comment 5 for bug 1283193

Revision history for this message
su_v (suv-lp) wrote :

Another unexpected side-effect of rev 13047 on copy&pasting of objects with gradients:
Named gradients with identical color stops get merged on paste (i.e. pasted objects are not necessarily sharing the same named gradient definition as the original):

0) launch current trunk with default (new) prefs
1) draw a rectangle
2) draw a second rectangle
3) switch to the gradient tool and create a default gradient for each of them (double-click with the gradient tool)
4) name the gradients differently for each rect (in Fill&Stroke)
5) copy each rect individually
--> the incorrect gradient transformation for both pasted objects is the identical - relative to each pasted object
--> the pasted objects unexpectedly share a single gradient instead of referring to the named gradient used by the original object
    (also reflected in the gradient count)
6) select both original gradients and copy&paste them as selection
--> the gradient handles of the two pasted objects have merged into the same (incorrect) position, and differ relative to the individual pasted object
--> all pasted gradients share the same single gradient now, even if two separately named gradients are in use by the original objects