copy and paste messes with gradients

Bug #412116 reported by Hendrik Hasenbein
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

I am using inkscape 0.46 at the moment to draw some login screens. The screens get customized per client and sometimes when I merge the client's icon onto the base image via cut'n'paste the gradients on the pasted icon get all messed up. The gradient of the icon is replaced by another (already existing) gradient from the background. If it happens it is repeatable and the gradient that replaces the pasted one is always the same.

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

Fixed in 0.47, see Release notes/0.47 > Notable bug fixes:
"No more ID clashes on import and paste: previously, importing or pasting SVG objects might sometimes distort their colors, because the imported objects referred to gradients with the same IDs as those that already exist in the document but look different. Now, IDs of all gradients in the pasted document are checked for clashes with those in the host document, and if necessary changed with all their users updated correspondingly, so such unexpected color changes will never happen. "
<http://wiki.inkscape.org/wiki/index.php/Release_notes/0.47#Notable_bug_fixes>

Could you test with a recent prerelease build from <http://sourceforge.net/projects/inkscape/files/> if this issue still persists?

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

Marking as duplicate of bug #165936 "ID clash when copying/importing gradients across documents". Please add a comment and revert the duplicate status if you think your reported bug is a different issue.

Revision history for this message
Hendrik Hasenbein (hhasenbe) wrote :

The problem was that there was no ID clash or at least I couldnt see one. 0.47 detects a clash and renames the ID.

In the most recent file where it happened the icon had linearGradient3299 replaced with linearGradient3293 from the background's gradients.

In 0.47 linearGradient3299 becomes linearGradient3299-1 after the merge. There is no linearGradient3299 in the background or in the merged graphic.

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

I am not sure I understand correctly: it still happens with Inkscape 0.47pre1? Could you attach an example drawing that illustrates your issue?

There is also a preference setting for gradients - 'Preferences > Misc > Prevent sharing of gradient definitions'. Could you test if changing it helps to solve your issue?

If it is not the same issue as in bug #165936, please revert the duplicate status.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.