mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
* Clear, Cut and Image > Adjustments refuse a pixel-locked layer (#1103) clear_area, destructive_adjust and auto_adjust took the layer's surface directly. They now go through commands::paint_surface, which refuses a pixel- or fully-locked layer with the same message painting uses. Co-Authored-By: Claude Opus 5.5 <[email protected]> * edit.cut: refuse a pixel-locked layer before filling the clipboard copy() ran before clear_selected noticed the lock, so a refused Cut still replaced the clipboard. Check the lock first (check_pixels_unlocked, shared with paint_surface) and assert the clipboard is unchanged in the test. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: prekabreki <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Brandon Thomas <[email protected]>