mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-08 13:04:13 +02:00
afa35e094d
A picture remembers whether its pivot was placed by hand: a hand-placed pivot is saved and kept through a resize, a default one is not saved and recentres after a resize. Two actions changed that flag outside their undo step: - applyCrop() marked the pivot as default after moving it to the centre of the kept region. After Ctrl+Z the pivot was back where the user had put it, but marked as default, so the next save dropped it. - dragging the pivot handle marked it as hand-placed. After Ctrl+Z the pivot was back at the centre but still marked as hand-placed, so a later resize left it at the handle's anchor corner. pivotIsCustom becomes a property, and both actions put it into their undo command next to rawPivot. tst_imagecropundo checks that a project saved after undoing a crop keeps its hand-placed pivot. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>