fixes a model sync issue

This commit is contained in:
hneemann 2021-05-01 11:16:19 +02:00
parent 8bc3175c1e
commit 7aa4ec6136

View File

@ -924,7 +924,7 @@ public class Model implements Iterable<Node>, SyncAccess {
return new SyncAccess() { return new SyncAccess() {
@Override @Override
public <A extends Runnable> A modify(A run) { public <A extends Runnable> A modify(A run) {
synchronized (this) { synchronized (Model.this) {
run.run(); run.run();
} }
fireEvent(ModelEvent.MICROSTEP); // record the external modification as a micro step! fireEvent(ModelEvent.MICROSTEP); // record the external modification as a micro step!