mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-28 10:11:58 +01:00
Image > Mode > Bitmap (halftone) passed its angle through unchecked: 1e39 became inf as f32, the screen rotation turned it into NaN and an almost white bitmap was recorded in history; 500 was accepted although the params doc (and Photoshop's Halftone Screen dialog) says -180..180. The angle must now be a finite number in -180..=180 and the frequency a finite number (still clamped to 1..999 lines/inch); otherwise the command returns BadParams before touching the document. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>