Hatches: Hatch fill not rendered when importing or copy-pasting hatched object into Inkscape, or when moving to other layer

Steps to reproduce:

Inkscape now renders SVG2 hatch fills and we even insert polyfills.

  • open Inkscape
  • open attached file: hatch.svg
  • try to copy-paste or import that into a new file

What happened?

  • on opening, the hatching is rendered
  • on import/copy-paste, the rectangle seems to have a fill (I can grab it in the middle), but the fill is not visible. It is in the XML, and when I save, close and reopen the file, it becomes visible (so it has been copied completely). Zooming does not refresh the rendering for the hatch fill. Importing the same thing a second time also doesn't make the second one visible.
  • the fill also gets lost when I move the object into another layer
  • the import preview doesn't render the hatch

What should have happened?

  • the hatch fill should be visible right after importing. Closing and reopening the file should not be necessary.

Inkscape Version and Operating System:

  • Inkscape Version: 1.0alpha2 (727140f98f, 2019-07-27)
  • Operating System: Linux Mint 19.1
Edited by Maren Hachmann