ungrouping didn't preserve appearance
Bug #214171 reported by
James
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Ungrouping a plot from gnuplot led to a black box covering the entire frame. attached the test case.
the origin of this bug has been pinpointed here:
https:/
To post a comment you must log in.
Thanks bbyak for pointing me at sp_style_ merge_from_ dying_parent in bug #174720 comment #18. merge_ipaint. The attached patch fixes that.
With this information I was able to track this down fairly quickly. The "none" setting wasn't merged down, as it wasn't handled at all in sp_style_
This should be tested thoroughly, though, as I could imagine some other parts of the code could assume that noneSet implies set, which is no longer true.
The attached patch also modifies the behaviour of ungrouping in the light of currentColor. When the child of a dying parent has some property explicitely set to currentColor, then it should be kept that way, not set to the value from the parent. The color property itself gets merged like any other normal color specification.