Bug 511702

Summary: Splitted layer not placed next to original layer
Product: [Applications] krita Reporter: Ming Chuan <ming>
Component: * UnknownAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ming Chuan 2025-11-06 08:56:43 UTC
SUMMARY

Split layer https://docs.krita.org/en/reference_manual/split_layer.html sometimes places the splitted layer at a position that's not next to the original layer in the layer stack. I could be wrong but I remember if used to place the layer next to the original layer?

I vaguely remember it worked before. I tested the reproduction steps all the way back to 5.2.0 appimage and it's still reproducible. Tested 5.2.0, 5.2.10, 5.2.13, master

STEPS TO REPRODUCE
1. Run krita appimage with clean environment (HOME, XDG_DATA_HOME, XDG_CACHE_HOME, XDG_CONFIG_HOME).
2. Create new krita document with default setting
3. Press the plus sign in layers docker 10 times to create 10 paint layers
4. click on "Paint Layer 5" to select it
5. Layer -> Split -> Split Layer -> Click Apply without changing any setting.

OBSERVED RESULT

Splitted layer is placed between Paint Layer 1 and Paint Layer 2. Which makes no logical sense

EXPECTED RESULT

Splitted layer placed on top of Paint Layer 5

SOFTWARE/OS VERSIONS

Linux appimage

This is under XWayland. Not sure if this bug exists on other platform.

Also reproducible on wayland native

ADDITIONAL INFORMATION