'Scale elements': masks and clipPaths with multiple references are scaled incorrectly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Triaged
|
Medium
|
Unassigned | ||
0.92.x |
Triaged
|
Medium
|
Unassigned |
Bug Description
If a mask or clip in a legacy file (90dpi) is referenced (used) by multiple objects (e.g. after having duplicated masked or clipped objects with 'Ctrl+D'), the option to 'Scale elements' to 96dpi may scale the mask or clipPath content for each referenced case instead of only once.
Steps to reproduce:
1) launch inkscape
2) open the attached SVG file
3) choose 'Scale elements' when asked about DPI change
--> the masks/clipPaths of the clipped / masked groups are incorrect in position and size (check also in outline view mode).
4) change preferences for transforms to 'Preserved'
5) revert the file and apply 'Scale elements' again
--> check the preserved transforms applied for the dpi change: it ought to be "scale(1.0666667)" for both the objects in the masked/clipped group as well as for the mask/clipPath. The content of the mask/clipPath however is scaled higher: "scale(1.3808409)".
1.3808409 = 1.0666667^5 # the mask/clip is referenced 5 times.
Reproduced with Inkscape 0.92pre5 r15288 on OS X 10.7.5.
Changed in inkscape: | |
milestone: | 0.92 → 0.92.1 |
Changed in inkscape: | |
importance: | Undecided → Medium |
Changed in inkscape: | |
milestone: | 0.92.1 → 0.93 |
Reproduced with Inkscape 0.92+devel r15374 on Ubuntu 14.04.5 LTS.