Skip to content

Commit f984794

Browse files
author
Edward Nutting
committed
Regression fix: Group move of modules was stopped working
In an effort to fix the selection-versus-link-edit behaviour I inadvertently disabled group-select movement of modules.
1 parent d4de90c commit f984794

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,10 @@ public void mousePressed(MouseEvent e) {
277277
else {
278278
Port p = screenSpace_portAt(e.getX(), e.getY());
279279

280-
Main.selection.clear();
281-
282280
//Link behaviour
283281
if (p != null) {
282+
Main.selection.clear();
283+
284284
tool = new MakeLinkTool();
285285
Main.ui.view.curTool = tool.lbDown(e.getX(), e.getY(), e.isShiftDown());
286286
}
@@ -291,6 +291,8 @@ public void mousePressed(MouseEvent e) {
291291
Link l = worldSpace_linkAt(worldSpace);
292292

293293
if (l != null) {
294+
Main.selection.clear();
295+
294296
tool = new EditLinkTool(l);
295297
Main.ui.view.curTool = tool.mouseMove(e.getX(), e.getY());
296298
return;

0 commit comments

Comments
 (0)