mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-26 14:31:02 -04:00
fixed a graphics bug occurring if the running model is restarted and this restart changes the graphic representation of the components.
This commit is contained in:
parent
4a3c40278d
commit
b25b7d0d54
@ -807,8 +807,10 @@ public final class Main extends JFrame implements ClosingWindowListener.ConfirmS
|
||||
|
||||
modelCreator = new ModelCreator(circuitComponent.getCircuit(), library);
|
||||
|
||||
if (model != null)
|
||||
if (model != null) {
|
||||
model.close();
|
||||
circuitComponent.getCircuit().clearState();
|
||||
}
|
||||
|
||||
model = modelCreator.createModel(true);
|
||||
model.setWindowPosManager(windowPosManager);
|
||||
|
Loading…
x
Reference in New Issue
Block a user