Copy path with pattern to 2nd window may drop part of pattern

Bug #1248282 reported by David Mathog
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Medium
Unassigned

Bug Description

In some instances:

1. select object in window 1 that uses a pattern fill or stroke
2. copy
3. change to window 2
4. paste

PART of the pattern may be lost. By this I mean if the pattern is complex, where pattern A depends on pattern B depends on C, then C may not be copied. In the example there is a Line in the defs in the source file, but it does not make it into
the target file on the paste. The result is that the pasted object is invisible.

This is in r12721, but the problem seems to go way, way back.

Revision history for this message
David Mathog (mathog) wrote :
Revision history for this message
David Mathog (mathog) wrote :
Revision history for this message
David Mathog (mathog) wrote :

The file probs1_pasted.svg was modified solely by copying the line section from <defs> in probs1.svg. This is sufficient to repair the problem.

So, the issue is that the complex pattern, which in this case references a line in defs, does not bring the line along to the new window when it is pasted.

jazzynico (jazzynico)
tags: added: clipboard pattern
Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Windows XP, Inkscape 0.48.4 and trunk revision 12782.
I'm almost sure there's already a report about it (or closely related), but I can't find it for now...

Changed in inkscape:
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

The pattern uses clones (<use> objects) - the referenced object is outside the pattern definition, but inside the defs, thus does not get exported to the clipboard (not selected).

AFAIU the underlying issue is already tracked in
- Bug #167907 "Copying cloned objects between files fails”
  <https://bugs.launchpad.net/inkscape/+bug/167907>

Variation with <symbol> elements:
- Bug #220521 “Group element in <defs> section lost during copy/paste between inkscape windows”
  <https://bugs.launchpad.net/inkscape/+bug/220521>

tags: added: clones
Changed in inkscape:
importance: Undecided → Medium
status: Confirmed → Triaged
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.