Operation on multiple cloned object gives odd results
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Confirmed
|
Medium
|
Unassigned |
Bug Description
[Tested on windows XP, version 0.48]
It happens in many different situations than the one I am going to explain, but I think the common relation is that I am applying a command on multiple cloned objects at once. I included the screen shots of before and after the operation and included the original .svg file in attachment.
I have many hexes which has been grouped and clipped. One type of hex type is smaller and has been made with clones. It is possible that they are not nicely cloned, which means that each clone does not necessarily have the same parent. Some can have another clone has a parent.
Now I want to place these hexes on a separate layer. If I use CTRL-click to select one of the small hex within the group and call function "Move selection to the layer above" it works perfectly. If I select multiple hexes and perform the same function, it moves the hexes to the layer above, but spread them into random directions.
I imagine they are comparing something with the original clone position rather than only affecting themselves. Why can't they just switch layer without moving.
Thank You
tags: | added: clones groups transformations |
> If I use CTRL-click to select one of the small hex
> within the group and call function "Move selection
> to the layer above" it works perfectly.
Could you point out for which single clone this works for you in the attached drawing? AFAIU the underlying issue, it is not related to the number of clones in the selection, but whether the parent group/layer of the clone/original and the target group/layer have different 'transform' attributes applied.
Related/same underlying issue:
Bug #168651 “"Tiled Clones" inside transformed groups broken”
Bug #479638 “file gets mangled due to Object->UnGroup”
Bug #659452 “Ungrouping objects causes translation in clones”
Main issue: as quoted in comment #7 of bug #479638, clones do not handle transforms of parent groups (or layers) well. When moving a clone onto a another layer (with a different or no transformation applied) or when ungrouping the parent group which has a transformation applied, the affected clones (moved or ungrouped) can get displaced incorrectly.
Notes:
- To avoid random nested clones: create one clone of the original (Alt+D), then duplicate the clone (Ctrl+D) instead of cloning it again.
- The 'transform' attribute of parent layers gets added to existing, not-empty layers when changing the page size or orientation. This can cause unexpected displacements when working with clones (see e.g. bug #168651 and its many duplicate reports). The same can happen when working with clones inside a group, and moving or scaling the group.