Skip to content

Commit fc2a986

Browse files
committed
Merge branch 'bugfix' into HEAD
2 parents 0e13231 + 9b951c6 commit fc2a986

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/com/modsim/gui/view/View.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,6 @@ public void paintStatic() {
130130
drawGrid(staticG);
131131
staticG.setTransform(oldStatic);
132132

133-
// Draw links
134-
staticG.transform(wToV);
135-
for (Link l : Main.sim.getLinks()) {
136-
if (l == null) {
137-
System.err.println("Warning: Null link encountered while drawing");
138-
continue;
139-
}
140-
l.draw(staticG);
141-
}
142-
143133
// Draw modules - static
144134
staticG.setTransform(oldStatic);
145135
for (BaseModule m : Main.sim.getModules()) {
@@ -149,6 +139,16 @@ public void paintStatic() {
149139
staticG.setTransform(oldStatic);
150140
}
151141

142+
// Draw links
143+
staticG.transform(wToV);
144+
for (Link l : Main.sim.getLinks()) {
145+
if (l == null) {
146+
System.err.println("Warning: Null link encountered while drawing");
147+
continue;
148+
}
149+
l.draw(staticG);
150+
}
151+
152152
staticG.setTransform(oldStatic);
153153

154154
// Static canvas is now up-to-date

0 commit comments

Comments
 (0)