mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-25 22:18:48 -04:00
if component is clicked and not moved, no undo entry is created.
This commit is contained in:
parent
2f2a5d865e
commit
214f002797
@ -1214,7 +1214,9 @@ public class CircuitComponent extends JComponent implements Circuit.ChangedListe
|
||||
void clicked(MouseEvent e) {
|
||||
if (!isLocked()) {
|
||||
visualElement.setPos(raster(visualElement.getPos()));
|
||||
addModificationAlreadyMade(new ModifyMoveAndRotElement(visualElement, initialPos));
|
||||
if (!visualElement.getPos().equals(initialPos)
|
||||
|| visualElement.getRotate() != initialRot)
|
||||
addModificationAlreadyMade(new ModifyMoveAndRotElement(visualElement, initialPos));
|
||||
}
|
||||
mouseNormal.activate();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user