Bug 463230 - Canvas isn't updated correctly in a certain scenario of using the colorize mask
Summary: Canvas isn't updated correctly in a certain scenario of using the colorize mask
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Tools/Colorize (other bugs)
Version First Reported In: 5.1.4
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-19 11:58 UTC by paleh
Modified: 2024-08-22 16:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Result (170.30 KB, image/png)
2022-12-19 11:58 UTC, paleh
Details
Step 3 (162.66 KB, image/png)
2022-12-19 11:58 UTC, paleh
Details
Step 5 (171.20 KB, image/png)
2022-12-19 11:59 UTC, paleh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description paleh 2022-12-19 11:58:02 UTC
Created attachment 154690 [details]
Result

SUMMARY
Checking "Limit to layer bounds" after the colorize mask had already been created for the entire canvas doesn't reinitialize the area outside the bounds 

STEPS TO REPRODUCE
1. Create new layer
2. Draw something on this layer, but such that its allocated size remains strictly inferior to the size of the canvas
3. Switch to Colorize Mask Tool, create a colorize mask for this layer, add some strokes to the mask
4. In Tool Options, while "Limit to layer bounds" is unchecked, click on "Update" and wait for the operation to finish
5. Check "Limit to layer bounds"
6. Click on "Update" again and wait for the operation to finish

OBSERVED RESULT
As evident from the screenshot, the canvas is updated incorrectly outside of the area of the smallest rectangle containing both the layer's and the mask's strokes. Zooming, panning or turning off the visibility for the colorize mask doesn't update it either. 

EXPECTED RESULT
The outside area should be blank

SOFTWARE/OS VERSIONS
Linux: Ubuntu 22.04.1 LTS
Qt Version: 5.12.12
Comment 1 paleh 2022-12-19 11:58:57 UTC
Created attachment 154691 [details]
Step 3
Comment 2 paleh 2022-12-19 11:59:48 UTC
Created attachment 154692 [details]
Step 5
Comment 3 wolthera 2023-01-12 11:05:02 UTC
Hi, thank you for your report!

Following the steps, I can confirm with the Krita Version: 5.2.0-prealpha (git 5c98a72) Appimage with Qt 5.15.7
Comment 4 Dmitry Kazakov 2024-08-22 16:39:13 UTC
Remove triaged keyword from CONFIRMED bugs