- start Inkscape with an empty page, note that the default layer is 'Layer 1'
- perform File->Open on a .JPG file, note that 'Layer 1' is destroyed and the .jpg is loaded into layer '(root)'. This by itself might not be a major problem, except that all subsequent drawing now also occurs in layer '(root)' as well, since Layer 1 is destroyed.
- the same behaviour occurs when opening .GIF or .PNG
- this behaviour does not occur when using File->Import on .JPG or .PNG or .GIF. In this case the original layer, 'Layer 1', is retained.
- this behaviour does not occur when opening .PDF or .PS. In this case a new layer is defined, not '(root)'.
- this behaviour occurs in Inkscape 0.46 as well.
I confirm this behavior, but I'm not sure it's a bug.
AFAIK, importing means adding the content of a file to the current document. That's what happens when we use File>Import AND when we open a PDF or PS (via an import dialog). But when we open a bitmap, it isn't added to the current document but opened in a new one. That's the reason why there's only a root layer.