mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
The dialog put the ruler unit on a leading bare number whenever an operator followed, so "2 * 50 px" and "2 / 2 * 50 px" became "2 cm * 50 px" and the engine refused a length times a length. Now it checks the whole leading term (`*` and `/` operands up to the first `+` or `-`): when one of them has a unit, the bare number is a plain factor and is sent as typed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>