Skip to content

Import svg file as new page - objects from hidden layers became visible

This is very similar to the bug about dislocated clones, but assume must be two separate cases.

Summary:

This is only relevant for Inkscape 1.2.1 and it's support for multipage documents.

This behavior is tested on two systems with identical results:

  • Windows 10 21H1 + Inkscape 1.2.1 (9c6d41e410, 2022-07-14)
  • Fedora 35, Cinnamon desktop/spin + Inkscape 1.2.1 (9c6d41e, 2022-07-14)

Steps to reproduce:

  • Have a normal Inkscape svg file that contains several layers, some of the layers must be hidden and also contain printable objects within the canvas.
  • Close any open Inkscape windows still open if any, open a new blank instance of Inkscape (probably doesn't matter)
  • If Open file explorer in Windows (or Nemo if a Linux distro with Cinnamon) , navigate to the svgz file and drag'n drop it into Inkscape program window.
  • In the dialog box, choose «Add SVG as new page(s) in the current file».

Expected results

Only objects that belong to visible layers should be imported.

What did actually happened?

All objects in layers that aren't supposed to be visible is also being imported.

Version info (windows)

Inkscape 1.2.1 (9c6d41e410, 2022-07-14) GLib version: 2.72.2 GTK version: 3.24.34 glibmm version: 2.66.4 gtkmm version: 3.24.6 libxml2 version: 2.9.14 libxslt version: 1.1.35 Cairo version: 1.17.6 Pango version: 1.50.7 HarfBuzz version: 4.4.1 OS version: Windows 10 21H1

Version info (Fedora 35)

Inkscape 1.2.1 (9c6d41e, 2022-07-14) GLib version: 2.64.6 GTK version: 3.24.20 glibmm version: 2.64.2 gtkmm version: 3.24.2 libxml2 version: 2.9.10 libxslt version: 1.1.34 Cairo version: 1.17.6 Pango version: 1.44.7 HarfBuzz version: 2.6.4 OS version: Fedora Linux 35 (Cinnamon)

Edited by Grobe Gruvedrift
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information