Bug 466640

Summary: Shaped gradient behaves incorrectly for disconnected shapes
Product: [Applications] krita Reporter: Viper <vipergraphicsproductions>
Component: ToolsAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.1.5   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Description of the problem

Description Viper 2023-03-01 07:54:35 UTC
Created attachment 156854 [details]
Description of the problem

As shown in the attachments, I'm using 3 black circles inside each other: The outer 2 circles have borders with no fill, and the inner-most circle is filled. I select the shapes using the Similar Color Selection tool, delete the shapes and replace them with Shaped gradient with black and white colors.

The result is that I get the shaped gradient, as well as what appears to be 4 square edges that appear in the outer-most circle (See attachment shaped_gradient_problem.png).


STEPS TO REPRODUCE
1. Create 3 circles as shown in the attachment
2. Select all the shapes together
3. Apply the gradient tool with the shape set to "Shaped"

OBSERVED RESULT

Square, solid colored edges appear on the outer-most circle

EXPECTED RESULT

The shaped gradient not containing the square edges (See the bottom of the attached image , which was created by applying the gradient on each of the circles separately).

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

ADDITIONAL INFORMATION