Increasing stroke width on grouped objects evokes erratic behavior

Bug #734596 reported by Tom Dignan on 2011-03-14
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

Steps to reproduce:
1. Create two squares.
2. Select them with the selection tool and hit C-g to group them
3. Sh-C-f to bring up fill and stroke.
4. select the newly grouped object.
5. stroke style->width -- press up arrow on width.

The result will be that the width does not properly adjust. Contrast this with adjusting the stroke width of a non-grouped object.

tags: added: groups
removed: grouping
Pablo Trabajos (pajarico) wrote :

Confirmed. A "style" attribute gets added to <svg:g> element with input stroke width. "style" attributes of each object inside the group gets updated with the correct stroke-width.

However, I don't know if this is intended and, if it is, this glitches the stroke width spinbox quite badly because it never updates to the real stroke-width value associated to the <svg:g> element.

Changed in inkscape:
status: New → Confirmed
Jaspervdg (jaspervdg) wrote :

It looks like behind the scenes it's mostly fine. The problem is what happens when the group has no stroke set yet. To see this:

1. Make sure that the group has no stroke properties set (click on the question mark in the stroke tab and/or go to the XML editor and remove any and all properties related to the stroke).
2. Now fill in a stroke width in the fill and stroke dialog.
3. The stroke width does get written to the XML, but the value shown in the F&S dialog is zero.
4. Now set the stroke to some color, suddenly the correct value /is/ shown in the F&S dialog.

This is different from the behaviour with rects (and presumably other shapes as well), which appear to be able to handle having just a stroke width set.

Samuel Buttigieg (sambut1987) wrote :

I have made a potential fix, now no matter how many grouped items there are or how complex the groupings are (eg a group that contains smaller groups of items) this problem should not appear anymore. This is because inksacpe will recursively go trough all items instead of trying to look at the group as one whole object. I hope this patch helps.

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