Files
photocraft/crates
kirubhakaran12andClaude Code d0b24e1abd Round the Magic Wand's Tolerance field to whole numbers
The wand's Tolerance took a plain value_field over an f32 option, so typing
12.5 stored 12.5 while the wand floored it to 12: the field showed a number
the tool did not use. A decimal written with the interface language's comma
(12,5) was rejected outright, and the old value stayed.

Adds FieldOpts::integer and widgets::value_field_int: the field rounds the
number its parser reads, so the value it holds while the number is typed is
the one it keeps and the DragValue keeps the typed text, and it rounds
whatever value another writer leaves behind (a drag, a preference file).
read() takes the decimal comma as a decimal point, as the zoom fields do.

The wand's Tolerance uses it. The Paint Bucket's field on the same option is
untouched, and the drag and arrow-key step stays 1.

Fixes #11786

Co-Authored-By: Claude Code <[email protected]>
2026-11-07 06:54:23 +05:30
..
…
…
…
…
…
…
…
…