clip and mask don't work with transform & auto-grouping

Bug #1177650 reported by David Box on 2013-05-08
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Medium
Mc

Bug Description

This bug has only been observed when the following preference is set:

'Inkscape Preferences > Clippaths and Masks > Before applying clippath or mask:'
[x] Put every clipped/masked object in its own group

If this preference is set, the clip and mask commands no longer work correctly if the bottommost object has a 'transform' attribute present.

Repro:

- set the preference
- create two primitive shapes such as rectangles
- stretch, shear, rotate and move the bottommost shape so that it contains a 'transform' attribute (it's easier to see the issue if it has been moved fairly far from its original position)
- try to set clip or mask using the two shapes

The operation will not work correctly, it looks like the transform on the bottom object isn't being applied correctly when the clip or mask is performed.

This was observed on Windows 8 using Inkscape 0.48.4 r9939 and Inkscape 0.48+devel r12217

su_v (suv-lp) on 2013-05-08
tags: added: clipping groups masking transformations
su_v (suv-lp) wrote :

Could you please attach a sample SVG file which exposes the reported issue, and explains (or illustrates) how the actual result differs from the expected results?

(I failed to notice anything unexpected in a quick test with current trunk builds (r12322), based on the provided 'steps to reproduce')

Changed in inkscape:
status: New → Incomplete

Apologies! I made a stupid copy and paste error in the repro steps, the preference should be 'Put every clipped/masked object in its own group' (it has a different name in the official release: 'Enclose every clipped/masked object in its own group')

Here's an svg file, just try and set clip on the two objects with that preference set and you should see the issue.

I'll also post another svg with the results I'm getting

Here's an svg with the results I'm getting

su_v (suv-lp) on 2013-05-08
Changed in inkscape:
status: Incomplete → New
su_v (suv-lp) wrote :

On 2013-05-09 24:08 +0100, David Box wrote:
> the preference should be 'Put every clipped/masked object in its own group'

Reproduced with Inkscape 0.48.0-0.48.4 and 0.48+devel r12323 on OS X 10.7.5

Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
jazzynico (jazzynico) wrote :

Also reproduced on Windows XP, Inkscape trunk revision 12322.

Changed in inkscape:
status: Confirmed → Triaged
su_v (suv-lp) on 2015-05-08
description: updated
su_v (suv-lp) wrote :

Fixed with commits r14130-14133.

Changed in inkscape:
assignee: nobody → Mc (mc...)
milestone: none → 0.92
status: Triaged → Fix Committed
Duarte Ramos (duarte-framos) wrote :

I was going to report a bug similar to this one but I think it is a duplicate, I am on Inkscape 0.91 both under Windows Xp and Windows 10 and I experience the same behavior.

If I draw a rectangle object and give it a non zero rotation and set another path as clipping, the path changes position to match the first rectangles rotation giving unexpected results.
If I first wrap the first rectangle in it's own group inkscape behaves as expected. I also found out through this post and can confirm that as described here, disabling the option "Put every clipped path in it's own group" gives the expected behavior.

Bryce Harrington (bryce) on 2017-01-10
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers