mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-24 13:21:22 +08:00
fixed issue with graph mouse controls not working if no listener is set.
This commit is contained in:
+3
-4
@@ -198,9 +198,6 @@ public class DefaultGraphDisplay implements GraphDisplay {
|
||||
viewer.setInitialDimensionFunction(InitialDimensionFunction
|
||||
.builder(viewer.getRenderContext().getVertexBoundsFunction())
|
||||
.build());
|
||||
|
||||
graphMouse = new JgtPluggableGraphMouse(this);
|
||||
|
||||
createToolbarActions();
|
||||
createPopupActions();
|
||||
connectSelectionStateListeners();
|
||||
@@ -647,7 +644,6 @@ public class DefaultGraphDisplay implements GraphDisplay {
|
||||
this.listener.graphClosed();
|
||||
}
|
||||
this.listener = listener;
|
||||
viewer.setGraphMouse(graphMouse);
|
||||
}
|
||||
|
||||
private void deselectEdge(AttributedEdge edge) {
|
||||
@@ -1122,6 +1118,9 @@ public class DefaultGraphDisplay implements GraphDisplay {
|
||||
vv.getComponent().removeMouseListener(mouseListener);
|
||||
}
|
||||
|
||||
graphMouse = new JgtPluggableGraphMouse(this);
|
||||
viewer.setGraphMouse(graphMouse);
|
||||
|
||||
return vv;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user