Bug 452740

Summary: Polygonal Selection Tool does not work with group, hidden or locked layers.
Product: [Applications] krita Reporter: gm.ravnevand
Component: Tools/SelectionAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: ahab.greybeard, ginoba
Priority: NOR    
Version First Reported In: 5.0.5   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description gm.ravnevand 2022-04-18 16:32:32 UTC
SUMMARY
***
With a group, hidden or locked layer selected in the layer stack the polygonal selection tool does not work, it lets you start and complete a selection but it disappears after completing it.
It functions normally on paint and mask layers.
None of the other selection tools seems to have this issue.
***


STEPS TO REPRODUCE
1. Select a group hidden or locked layer in the layer stack.
2. Make a selection using the polygonal selection too.

OBSERVED RESULT
Selection disappears after completing it.

EXPECTED RESULT
Selection stay.
Comment 1 Ahab Greybeard 2022-04-18 17:17:52 UTC
This was first reported at https://krita-artists.org/t/polygonal-selection-tool-does-not-work-with-group-hidden-or-locked-layers-selected/39927

I can Confirm this for the Apr 18 5.1.0-prealpha (git 4205530a30) appimage on Debian 10, for the Polygonal Selection Tool - Pixel and Vector selections

Other selection tools do not have this problem.
The 4.4.8 appimage does not have this problem.

For locked and invisible layers, there is a warning notice when the polygonal selection is completed.
For a group layer, there is no warning.