mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-11 14:44:15 +02:00
446479e8d2
While a picture was being cropped on the folio: - Ctrl+Z or Ctrl+Y of an earlier crop of the same picture left the crop handles where they were, 10 px beside the frame for a crop that starts at (10, 10). - undoing the picture's insertion dropped the crop but left the picture as the folio's keyboard item, also after a redo put it back. setImageSource() and leaving the scene now end the crop without applying it. Nothing is pushed on the undo stack from there, since both can run inside an undo command. Delete and cut are unchanged: they deselect the picture first, which applies the crop as its own undo step before theirs. No file-format change. Not covered by an automated test: crop mode needs a folio and its view, which a test can only get from the application object library of #1431. Checked with a throw-away test on a local merge of both branches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>