mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-08 04:44:13 +02:00
1b0ab6d26a
The displayed pixmap and imageSource (original, crop rectangle, transparent colours) were two undo values that had to change together, although the pixmap follows from the source. An action that updated one and not the other would bring back the bug fixed in #1310. setImageSource() now recomputes the displayed pixmap, and crop, colour key, mirror and replace push one undo step on imageSource alone. A plain QUndoCommand holds the property change, so two identical actions in a row stay two steps. Loading a project still shows the saved pixmap as before. tst_imagecropundo also checks the size of the saved picture after undo and after redo. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>