Fix divide-by-zero crash when using calligraphy tool
-
Review changes -
Open in Workspace
-
-
Download -
Patches
-
Plain diff
When getting the average color of a cairo surface, if the alpha is zero, we were getting a divide-by-zero error, because we were dividing r, g, and b by the cumulutive alpha of the surface.
Instead, we should return black in that case.
Fixes #6098
Edited by Michael Terry
Merge request reports
Loading






















