Copy and paste between two documents with colliding xlink:href yield wrong result
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When pasting a selection containing xlink:href references into another document that have the same reference id's but with different symbol contents, the copied selections href's are not copied and renamed as expected. Instead the copy suddenly gets attached to the destination symbols.
To illustrate this consider the following short python program that generates two svg files by cairo, ab.svg and bc.svg, each containing two characters:
import cairo
WIDTH=HEIGHT=128
for text,r,g,b in (('ab',1,0,0),
surface = cairo.SVGSurface (text + '.svg', WIDTH, HEIGHT)
cr = cairo.Context (surface)
cr.rectangle(
# Darkblue
cr.set_
cr.fill()
cr.set_
cr.move_
cr.scale(8,8)
cr.show_
The resulting images are attached as ab.svg and bc.svg .
To reproduce the bug do:
1. Run inkscape with both files
inkscape ab.svg bc.svg
2. in bc.svg do Ctrl-A to select the drawing.
3. Paste into ab.svg
Result: The pasted text turns into 'ab' while it was 'bc' in the original.
Tested with Inkscape 0.48.4 r9939
Second svg file that will be changed if pasted into the first ab.svg .