fixed a bug in the view favorites, see #335

This commit is contained in:
hneemann 2019-09-15 19:25:26 +02:00
parent 63cbf36a15
commit 295da8aa9e

View File

@ -283,7 +283,7 @@ public class CircuitComponent extends JComponent implements ChangedListener, Lib
@Override
public void actionPerformed(ActionEvent actionEvent) {
ElementAttributes attr = new ElementAttributes(getCircuit().getAttributes());
attr.set(key, transform);
attr.set(key, new AffineTransform(transform));
modify(new ModifyCircuitAttributes(attr));
}
}.setAcceleratorCTRLplus((char) ('0' + i)).enableAcceleratorIn(this);
@ -292,7 +292,7 @@ public class CircuitComponent extends JComponent implements ChangedListener, Lib
public void actionPerformed(ActionEvent actionEvent) {
AffineTransform tr = getCircuit().getAttributes().get(key);
if (!tr.isIdentity()) {
transform = tr;
transform = new AffineTransform(tr);
isManualScale = true;
graphicHasChanged();
if (circuitScrollPanel != null)