Bug 463477

Summary: Selection from mask layer pasting to wrong location
Product: [Applications] krita Reporter: throwaway6611166
Component: * UnknownAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: griffinvalley, halla
Priority: NOR    
Version First Reported In: 5.1.4   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Video of selection pasting to wrong location.

Description throwaway6611166 2022-12-26 09:09:58 UTC
Created attachment 154825 [details]
Video of selection pasting to wrong location.

SUMMARY
Copying and pasting selection from a layer with alpha inheritance pastes selected area to the incorrect area.


STEPS TO REPRODUCE
1. Make a quick clipping group and paint on mask layer.
2. Select a portion of mask layer.
3. Right click and cut selection to new layer.

OBSERVED RESULT
Selection stays in original position and painted area is pasted to a new layer, but in the lower right of the canvas (usually off the canvas).

EXPECTED RESULT
Painted area is pasted in the same location on the canvas that it was copied from.

SOFTWARE/OS VERSIONS
Windows: 10 Pro 21H2
Qt Version: 
  (compiled): 5.12.12
  (loaded): 5.12.12

ADDITIONAL INFORMATION
Disabling alpha inheritance produces expected result.
Comment 1 Halla Rempt 2023-01-04 11:34:37 UTC
Thank you for the report. I can confirm the issue.
Comment 2 wolthera 2023-11-06 10:41:55 UTC
Fixed by https://invent.kde.org/graphics/krita/-/commit/31163c43eacf92c6796668dfbf555f3f88707b24

If this doesn't fix it, please don't hesitate to reopen this report.