Automatic creation of enable-background attribute not undone in renderer

Bug #593020 reported by Chris Morgan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Low
Unassigned

Bug Description

1. Open a document, any document.
2. Create a filter with a filter primitive operating on "Background Image" and apply it to an object. As documented (whether expected or not) this won't work as the enable-background attribute/style value has not been set yet. (It'd be good if using it like this would automatically turn it on, but that's a feature request, not a bug fix).
3. Go to the layer selection panel, select a layer blending mode. The filter in the previous step should now start to function correctly as enable-background is set to "new".
4. Undo. This removes the filter on the layer and also removes the enable-background setting in the document (observe by saving or the XML editor).
5. Observe that the enable-background setting has been disabled (save or look in the XML editor). This is as expected as it was created by the action.
6. Observe however that filters using the "Background Image" are still working in the renderer, until you reopen or revert the document (to after the undo state). This should not be. The rendering canvas is not being told that enable-background has been removed.

Ubuntu 10.04, Inkscape-0.47+devel-r9474

Revision history for this message
su_v (suv-lp) wrote :

reproduced with Inkscape 0.47+devel r9495 on OS X 10.5.8

tags: added: filters-svg undo
Changed in inkscape:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Kyli Rouge (kyli) wrote :

Reproduced with Inkscape 0.91 r13725 on Windows 10 10.0.14342

Revision history for this message
jazzynico (jazzynico) wrote :

enable-background=new is now (0.91) set by default, so the steps are a bit different:
1. Open the attached file.
2. Open the XML editor (Shift+Ctrl+X).
3. Select the svg:svg root element, and remove the enable-background=new attribute.
-> The rendered image doesn't change.
4. Save the document and reload it (File>Revert).
-> The image now shows as expected.

Changed in inkscape:
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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