mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-13 21:52:54 +00:00
Straighten Layer was offered wherever a ruler line existed, so its button was live for every target and the command turned whatever it was pointed at: it rotated and cropped the canvas on the Background, turned several selected layers or a group, failed on a locked layer with `layer "..." is locked`, and rotated pixels nobody could see on a hidden layer. The reference application (#12033) keeps the button off for the Background, a multi-layer selection, a group, Lock All and Lock Position, and answers a hidden target layer with its alert and no change at all. The command's own `enabled` check now says the first set, so the options bar, the CLI, the control channel and an action step all agree about what is offered; the hidden layer stays enabled and is refused by the command, before it reads anything for the edit, so a refused click leaves the document, its History and the ruler line exactly as they were. The states the ticket marks *not measured* keep today's behaviour.