"Paste size" is not working well when the shapes have strokes

Bug #311830 reported by qbit
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Low
Unassigned

Bug Description

Steps:
1. Draw a 30 x 30 mm square with 1px stroke.
2. Draw a 10 x 10 mm square with 1px stroke.
3. Select first square and then Ctrl+C.
4. Select the second square and then Edit > Paste Size > Paste Size.
Expected result: The sizes of both squares to be the same.
Obtained result: The second square is 29,451 x 29,451 mm.

(Inkscape 0.46, WinXP SP2)

Revision history for this message
jazzynico (jazzynico) wrote :

Tested with Ubuntu 8.10 and rev. 20398.

After step 4, the overall size of both squares is the same.
But the stroke size of square 2 is 3px (should be 1px). Looks like it applied a ratio of 3 (actually 30/10) to each size attribute of the second square. Is this the expected behavior?

Revision history for this message
qbit (paulix) wrote :

First test was made with the stable release of Inkscape 0.46. Meantime, I downloaded build 20398 and tested with it. The results are the same as in my first post. I'm not obtaining at all the same size for both squares.

@JazzyNico
Take a look at the function/button that scales the stroke when scaling the objects to see if there are problems related to it.

Revision history for this message
jazzynico (jazzynico) wrote :

You're right. I have the same result with the stroke scale unselected.
And the missing size is 2px... Added to my stroke, I get 3px, which is exactly what I get when I have stroke scale enabled.
Anyway, we expected to get the same square (and stroke!) size, stroke scale enabled or not.

Revision history for this message
qbit (paulix) wrote :

This is also a problem I think it should be resolved for 0.47. Is something new here?

Revision history for this message
ScislaC (scislac) wrote :

This will not likely be fixed for 0.47 unless someone wants to submit a patch really soon.

However, I disagree with JazzyNico about "expected to get the same square (and stroke!) size, stroke scale enabled or not". Quite simply, it would end up breaking our standard of respecting those toggles for sizing operations if it wasn't observed. Do you think that the Transform dialog should also disobey a user's preferences?

Revision history for this message
jazzynico (jazzynico) wrote :

ScislaC, I understand your point of view and no, all other transforms should not disobey to the user's preferences. I may be wrong (and am ready to accept it), but copying the visual bounding box dimensions, and not those of the object, seems somewhat weird to me. And copying dimensions, from a user's point of view, is not exactly similar to transforming it with its handles. It's probably a very old debate. I'll try to dig the devel mailing list archives about it!

Changed in inkscape:
importance: Undecided → Low
status: New → Confirmed
tags: added: transformations
Revision history for this message
Anonymous (susi-8888) wrote :

Seeing still the similar effect on Version Inkscape 0.91pre2 r13516

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.