Tiled clones offset not expected

Bug #213793 reported by KevinM
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Unassigned

Bug Description

I'm using Inkscape 0.46 on Ubuntu 7.10 x64. I'm trying to use Tiled clones. I'm expecting the clones to be put on top of the original item but they seem to be offset (away) from the original. Regardless of the item to be cloned and number of clones the offset is always the same.
select a circle with a line on it, group the two items and then go to Edit- Clones-Create Tiled clones. I set Rows to 1x11. Shift X (per column) is set to -100, everything else is 0. Scale is 0. Rotation is set to 30 degrees per row and column. When I select the grouped items and hit Create all the cIones are offset by the same amount from the original. I've tried selecting 'Use saved size and position of the tile' but this makes no difference. I've also tried using Shift X (per row) at -100 and Shift Y (per column) at -100 (instead) and get the same result.
The center of rotation of the circle to be cloned was in the center of the circle.
See also Inkscape Question #28979 and attached file.

Revision history for this message
KevinM (kevbert1) wrote :
Revision history for this message
KevinM (kevbert1) wrote :

I've just checked this on Inkscape 0.46 on a Ubuntu 7.10 32 bit PC and get the same result.

Revision history for this message
bbyak (buliabyak) wrote :

I cannot reproduce this with current svn version. I follow your steps in your file and get the clones overlapping as they should be. Please press Reset on clonetiler, and move away your preferences.xml file to clear your preferences. If this does not help, please give the exact detailed steps to reproduce: literally what buttons pressed in what order.

Changed in inkscape:
status: New → Incomplete
Revision history for this message
KevinM (kevbert1) wrote :

Sorry for the delay in replying.
This error was generated by following the video Episode 047 on the screencasters website at http://screencasters.heathenx.org/2007/12/.
The video was written for Inkscape 0.45 and not 0.46 (which I used).

Revision history for this message
KevinM (kevbert1) wrote :

This problem still has not been resolved.

Revision history for this message
Michal Predotka (mpredotka) wrote :

I have the same problem on Ubuntu 9.04, Inkscape 0.46, built Apr 8 2009

Revision history for this message
humphrai (humphrai) wrote :

Problem still happens on 0.47pre1 and windows xp sp3.
It looks like the rotation part is loosing the rotation center somehow.
If you open a new document rotation seems to work. But after some manipulations on the origin the clones start moving away. Looks like some offset or somethingelse is not cleared or recalculated...

Revision history for this message
Michal Predotka (mpredotka) wrote :

@humphrai, try different settings. I put them here: http://screencasters.heathenx.org/episode-049/#comment-1779

Revision history for this message
humphrai (humphrai) wrote :

The issue is ... I can get it fine in a new, empty file. In fact I am just cloning a triangel and this works perfectly. Then I'm moving the whole thing (moving the orig) or change the shape of the original - destroy and rebuild the clones. It makes no difference to me if I will readjust the midpoint of the shape or not. After changes the clones are running off the midpoint no matter what I try to do.

Revision history for this message
Mar (martin-baramartin) wrote :

I can confirm this too. After playing around with a new file for 5 minutes, I managed to get the bug.

Steps to reproduce:

* Open the attached 'clone_bug.svg';
* Select the red bar in the center of the page;
* Create Tiled Clones: 2 rows, 1 column; 'exclude tile' for row/column on the 'shift' tab; put 90 degree on row in the 'rotation' tab;
* This should create a red cross, but instead the cloned object is placed elsewhere.

I am using Inkscape 0.47RC1 in Windows Vista. I've seen the bug since I started using Inkscape at version 0.46. I have confirmed that the bug is reproducible by opening the saved file and performing the steps above.

Teki (teknocide)
tags: added: transformations
Revision history for this message
su_v (suv-lp) wrote :

misplaced tiled clone in 'clone_bug.svg' confirmed with Inkscape 0.46+devel r22115 on OS X 10.5.8:

If you remove the 'transform="translate(0,-352.36218)"' attribute from the group 'Layer 1" in 'clone_bug.svg' - the 'Tiled Clones…' work as expected. The translate attribute gets added e.g. when you resize the page in 'Document Properties'.

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

Initial bug description with test file 'Tiled_clones_offset.svg' not confirmed with Inkscape 0.46+devel r22115 on OS X 10.5.8.

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

@Mar - your bug seems a duplicate of bug #168651 “'fit page to selection' affecting tranf. centers”.

Revision history for this message
Mar (martin-baramartin) wrote :

The outcome seems to be the same, but I never used "fit page to selection" on that project. I did resize the scene to 700x700 pixels, but that was before any objects were added.

I have another interesting discovery: if you select the whole layer [svg:g id="layer1"] from the XML Editor, the result is correct. There is no need to remove the "transform=translate" part (it probably shouldn't be possible to relocate a layer-group -- they seem to be implemented as groups -- anyhow). A quick and dirty fix that may work is to check for [inkscape:groupmode=layer] before a transform and disregard from the group's (layer's) coordinate data. Or maybe this data is used for something else..?

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

> I never used "fit page to selection" on that project. I did resize the scene to 700x700 pixels […]
The effect is the same: the transform attribute is added to 'Layer 1'.

> if you select the whole layer [svg:g id="layer1"] from the XML Editor, the result is correct.
Not quite: the cloned tiles are placed on the '(root)' layer, not on the same layer as the original shape.

Can you reproduce the initial bug report with the above attached 'Tiled_clones_offset.svg' using 0.47pre? Otherwise I think there are two different issues here and at least one seems to have been fixed recently?

Revision history for this message
Mar (martin-baramartin) wrote :

@ ~suv: you are correct, I cannot reproduce my bug using the Tiled_clones_offset-SVG. Should I re-report or split the thread somehow..?

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

I recommend to add your test case and detailed description (as in: steps to reproduce, Inkscape version) to bug #168651, since it is still marked 'incomplete' and has no test case (except a ogg screencast) attached. It will help to confirm that the bug is still present in current SVN or prerelease builds.

Revision history for this message
Brynn (brynn4inks-deactivatedaccount) wrote :

This may also be related to problems I reported in Bug 299362
(https://bugs.launchpad.net/inkscape/+bug/299362) where using either Fit Page to Selection or sometimes any kind of Transformation, causes objects to be displaced (from where expected) on the canvas (including one example using Tiled Clones). The problems do not occur in brand new empty canvas.

Sorry for the confusion in my reporting, but I don't have any experience with coding or debugging and such. Also, my reports were on 0.46. I don't have any dev. version, so couldn't test for 0.47.

Just wanted to mention that the problems sound quite similar, so those much more wise members can investigate. Thanks.

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

Closing as 'Fix released' because the bug as reported cannot be reproduced with current SVN builds.
Adding example from comment 10 to related bug #168651.

If you don't agree, please add a comment and revert the bug status.

Changed in inkscape:
status: Incomplete → Fix Released
Revision history for this message
ariel cornejo (arielco) wrote :

The bug is still present in 0.47+8999+1+910 (package 'inkscape-devel' from ppa:inkscape-nightly/ppa).

Steps to reproduce:
1. Create a small shape in a new page, without changing its size. The rotation center will be in the middle of the bounding box.
2. Edit > Clone > Create tiled clones. Symmetry: P1; Shift: 4 rows, 1 column, 0% for all shifts, check Exclude tile; Rotation: 20 deg per row. Optionally, use Hue or Fade out to tell them apart. All the clones are centered around their rotation centers.
3. Copy the original shape somewhere else in the same page.
4. File > Document properties > Page size = US Letter. It's barely smaller than A4.
5. Repeat Step 2. The clones seem to have rotated around some point *above* the rotation center.
6. Undo, repeat steps 4,5 with different page sizes.

Results vary wildly with page size. For example, A0 results in no rotation. In the attached example, the first clone is red.

Revision history for this message
ariel cornejo (arielco) wrote :

Hello, I'm still experiencing this with the build from the devel PPA (Version: 0.47+9391+1+910). Please see my comment above and the attached example.

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

@ariel - no, you are experiencing Bug #168651 “"Tiled Clones" inside transformed groups broken” (due to your step 4 - resizing the page adds a transform attribute to the top layer).

OTOH this bug (#213793) has never been reproduced as originally reported in Inkscape 0.47 and current devel builds.

Changed in inkscape:
status: New → Fix Released
Revision history for this message
ariel cornejo (arielco) wrote :

~suv, you're right - thanks. I wasn't even aware that changing the page size involved a transformation on the existing objects. I changed the status hoping I'd get some sort of reply this time, and it worked ;) Thanks again.

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

Other bug subscribers

Related questions

Remote bug watches

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