mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
A NaN or infinite sample (32-bit documents can hold them) reached the region means unchanged, so a region's colour, the edge offsets built from it and the fill could turn non-finite or leave pixels uncovered. trace now replaces non-finite channels with 0 before banding (copying the image only when one is present). Test: NaN and ±inf samples give finite region colours, outlines and pixels with full coverage; it fails without the fix. (CodeRabbit review on #10328.) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>