gimp_image_reorder_item(): fails when trying to reorder layer to root of stack
Environment/Versions
- GIMP version:2.99.14
- Package: flatpak
- Operating System: linux
Description of the bug
Trying to reorder a layer to the root of the stack fails in Gimp 2.99.14, works ok in 2.10.30 (gimp-image-reorder-item 1 2 0 0)
Reproduction
Is the bug reproducible? always
Reproduction steps:
- start gimp and create a new image
- create a folder and put background in the folder.
- run (gimp-image-reorder-item 1 2 0 0) in the console (img layer parent position)
…
Expected result: #t
Actual result: Error: runtime: invalid item ID (0 0)