From: Daniel Kirschten Date: Mon, 3 Jun 2019 20:14:55 +0000 (+0200) Subject: Fixed stupid bug causing submodules not to work X-Git-Url: https://mograsim.net/gitweb/?a=commitdiff_plain;h=d255018e64db08c791774b98b91ca99b6d7ef1da;hp=04218dc9e67abb384c4d031620ef3f8329ac861e;p=Mograsim.git Fixed stupid bug causing submodules not to work --- diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/modeladapter/ViewLogicModelAdapter.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/modeladapter/ViewLogicModelAdapter.java index 80c2898a..09cd6cba 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/modeladapter/ViewLogicModelAdapter.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/modeladapter/ViewLogicModelAdapter.java @@ -115,7 +115,7 @@ public class ViewLogicModelAdapter else throw new IllegalArgumentException("Two pins to external wires can't be connected directly"); } - return new Wire(timeline, e.getKey().logicWidth, params.wireTravelTime); + return externalWire == null ? new Wire(timeline, e.getKey().logicWidth, params.wireTravelTime) : externalWire; })); return logicWiresPerPin; }