Bug 432620

Summary: Copy and pasting filter mask HSV/HSL Adjustment and Levels makes white pixels black
Product: [Applications] krita Reporter: tweetychrip
Component: Filter LayersAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: ahab.greybeard, halla, vitamorus.art
Priority: NOR    
Version First Reported In: 4.4.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description tweetychrip 2021-02-07 19:34:52 UTC
SUMMARY
Copy and pasting filter mask HSV/HSL Adjustment and Levels makes white pixels black

STEPS TO REPRODUCE
1. Make one of those layers
2. Ctrl-C
3. Ctrl-V

OBSERVED RESULT
Layer is completely black

EXPECTED RESULT
Layer is white

SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Halla Rempt 2021-02-07 19:42:38 UTC
Hi,

I'll try to reproduce this tomorrow and set to confirmed if I can reproduce it. I've changed the importance to normal. Thank you for your report.
Comment 2 Ahab Greybeard 2021-02-07 19:59:35 UTC
I can confirm this for appimages from 4.3.0 to the Feb 07 5.0.0 prealpha (git 56c1de).

If you first do a paint operation on the mask, such as a small dot in the corner, then copying and pasting it seems to have no problem.
Comment 3 tweetychrip 2021-02-07 22:11:45 UTC
Sometimes the bug happens, and sometimes it doesn't. It's not very consistent.
Comment 4 Vitamorus 2024-12-12 20:03:07 UTC
Reproduced in 4.4.1 but resolved in 5.2.6!

Seems to have been an issue with bounds not being properly set. When there was something drawn on the mask the copy would have trimmed the bounds to contain only was on there. Presumably a blank/white mask resulted in a copy with zero size bounds.