Comment 36 for bug 722017

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

Testing Inkscape 0.48+devel r11359 + 722017.v1.patch
(OS X 10.7.4, FSF GCC 4.6.3, Gtk+/X11 2.24.10, Glib 2.32.2)

Inconsistent 'ID' <--> 'inkscape:label' relation: Forked gradients get a new ID but the newly introduced 'inkscape:label' attribute is not consistently updated -> the list of gradients in the Fill&Stroke dialog, and on the gradients toolbar, can show multiple gradients with the same "name" showing different stops (actually the gradient definitions have different IDs but the same label) .

Steps to reproduce (new default preferences):
1) open new document
2) draw a rectangle (defaults to flat blue fill)
3) open Fill&Stroke, change flat fill to linear gradient
3) copy & paste the rectangle (gradient is forked with new ID)
4) change a gradient stop color of the pasted rectangle

-> the list of gradients now displays two gradients with the same name (label) but different colors.

The inconsistent behavior seems to depend on whether the 'Fill&Stroke' dialog has been opened in the current session or not before editing a newly forked gradient: if 'Fill&Stroke' has not been opened, and the changes are done with the gradient tool alone (using the color palette to assign new stop colors), the label seems to get updated (renamed) at the moment the forked gradient is edited for the first time.