Comment 38 for bug 722017

Revision history for this message
John Smith (john-smithi) wrote :

@suv, RE comments #36

> the list of gradients in the Fill&Stroke dialog, and the gradients toolbar, can show multiple gradients with the same "name"

Just to clarify the terms here:
1) The Gradient has an "id" (example linearGradient1547) - this is assigned by Inkscape
2) The Gradient can optionally have a label "inkscape:label" (example blue) - this is optionally set by the user
3) The Gradient "Name" as appaers in the Fill&Stroke dialog and Gradient toolbar is either:
      a) The label (2) if is exists
      b) Or, a simplified version of the id (1) (example linearGradient1547 will show as "#1547)

Case 1:
When you draw a new rectangle with a new gradient, it should have no label, only an id - hence the "name" should be like the id.
When you copy/paste that , the gradient should be forked, a new id assigned and the new id should appear in the "name".

Case 2:
If the user sets the name of a gradient in the Fill Stroke dialog, they are really setting the label (for example blue)
Then if you copy/paste that, the gradient should be forked with a new id, but with the *same* label, and the name in the dialog with be the same as the other gradient.

> the gradient definitions have different IDs but the same label

1. Is this not the correct behavior ?
2. Is this not the same behavior you see in the trunk (ie without this patch) ?