mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-10 18:20:31 -06:00
modify() rejected only non-finite radii and radii above the dialog's maximum, then clamped with r.max(0.0). A negative radius therefore reported success while leaving the selection alone (Expand, Contract) or clearing it (Border), against the function's own rule that out-of-range values are "refused, never clamped silently". Negative radii now get the same BadParams error, "radius must be a number in 0..max", and the selection is untouched. Test: modify_commands also tries -5, -0.5 and f64::MIN for all five Modify commands. Claude-Session: https://claude.ai/code/session_01K3vVft4VXvvy8SpbbUceTW Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>