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

Bug #1177650 reported by David Box
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
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)
tags: added: clipping groups masking transformations
Revision history for this message
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
Revision history for this message
David Box (davidbox-mail+launchpad) wrote :

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

Revision history for this message
David Box (davidbox-mail+launchpad) wrote :

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

su_v (suv-lp)
Changed in inkscape:
status: Incomplete → New
Revision history for this message
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
Revision history for this message
jazzynico (jazzynico) wrote :

Also reproduced on Windows XP, Inkscape trunk revision 12322.

Changed in inkscape:
status: Confirmed → Triaged
su_v (suv-lp)
description: updated
Revision history for this message
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
Revision history for this message
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)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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