When there is PCell inserted in layer, changing layer properties (number, datatype) does not work properly. When the GDS file is saved, PCell geometry is still in original layer.
Steps to reproduce:
- create new layout
- Insert some PCell into it
- Change layer number via Edit layer specification - PCell geometry will be under new layer number
- Save the GDS
- Restart KLayout and open the file
- PCell geometry will be in the original layer as before point 3