Rounded corners do not scale when 2 rectangles with R=4 grouped

Bug #196624 reported by marcel
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Unassigned

Bug Description

I´m working with Inkscape 0.45.1+0.46pre1+devel, built Feb 1 2008 (WIN XP)

For expample I scale a group consisting of a rectangle object and a path with "Object-->Transform" by 50%.

Before scaling:
Dimensions of the rectangle objects are: W=100mm H=100mm Rx=4mm Ry=4mm

After scaling:
Dimensions of the rectangle objects are still the same! even so it has been scaled effectively!: W=100mm H=100mm Rx=4mm Ry=4mm

Revision history for this message
Marcin Floryan (mfloryan) wrote : Re: Rounded corners do not scale when rectangles grouped

When a single rectangle is scaled rounded corners are scaled properly but not when it is part of a group.

Steps to reproduce:
* Create two rectangles (set rounded corners to Rx = 4 and Ry=4)
* Group them together
* Select Transformation (Shift+Ctrl+M) and Scale by 50%
* The rectangles are scaled properly but rounded corners are still Rx and Ry=4 for each
* If "Affect: rounded corners" is turned off the corners of the scaled (down) rectangles now have Rx=8
* If different radius is chosen (say 10) the transformation works as expected
* If more than two rectangles are added to the group the transformation works correctly as well

Tested with rev. 17566 (29 Feb 08)

Changed in inkscape:
status: New → Confirmed
Revision history for this message
marcel (marcel-tippmann) wrote :

Yes the rectangles scale properly as you say.

However the dimensions, I mean the numbers, shown in the rectangle tool are wrong (remain unchanged) after scaling within a group.

Revision history for this message
Marcin Floryan (mfloryan) wrote :

Well, I am not sure. The dimensions of the rectangles do not change because the group is rescaled and not the rectangles. Whether this should be reflected in the UI - probably yes. I would be more concerned about the inconsistency of this behaviour. And the fact that in one case the rounded corners radius is scaled up, not down.

Some SVG snippets:

before:

<g
       id="g2395">
      <rect
         ry="3.3333333" rx="3.0107527" y="335.21918" x="185.714" height="200" width="200" id="rect2383" style="fill:#3a7c0e" />
      <rect
         ry="4.2682924" rx="4.2168674" y="436.64792" x="280" height="250" width="250" id="rect2385" style="fill:#f4cece" />
    </g>

after:

<g
       id="g2395"
       transform="matrix(0.5,0,0,0.5,178.9285,255.46677)">
      <rect
         ry="3.3333333" rx="3.0107527" y="335.21918" x="185.714" height="200" width="200" id="rect2383" style="fill:#3a7c0e" />
      <rect
         ry="4.2682924" rx="4.2168674" y="436.64792" x="280" height="250" width="250" id="rect2385" style="fill:#f4cece" />
    </g>

nightrow (jb-benoit)
Changed in inkscape:
importance: Undecided → Medium
su_v (suv-lp)
tags: added: groups object-shape transformations
removed: win32
Revision history for this message
su_v (suv-lp) wrote :

still present in Inkscape 0.46+devel r22575 on OS X 10.5.8

Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Windows XP, Inkscape trunk revision 12511.

tags: added: objects
Changed in inkscape:
status: Confirmed → Triaged
Revision history for this message
Alvin Penner (apenner) wrote :

possible fix committed to rev 13964, please re-test

Revision history for this message
mray (mrayyyy) wrote :

Closing because cannot reproduce in v 1.0alpha (1:0.92.0+devel+201904142205+c3e0287) on ubuntu 18.10.

Closed by: https://gitlab.com/mray

tags: added: bug-migration
Changed in inkscape:
status: Triaged → Fix Released
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.