GP-4656 - Fixed issue loading FCG when starting fully-zoomed in

This commit is contained in:
dragonmacher 2024-05-31 12:02:20 -04:00
parent bbd11bd1e0
commit ddaa6a35b8

View File

@ -32,9 +32,6 @@ import ghidra.graph.viewer.vertex.VisualVertexRenderer;
*/
public class FcgComponent extends GraphComponent<FcgVertex, FcgEdge, FunctionCallGraph> {
// our parent stores a reference to this graph, but we do it here to maintain its type
private FunctionCallGraph fcGraph;
private FcgVertexPaintTransformer vertexPaintTransformer =
new FcgVertexPaintTransformer(FcgVertex.DEFAULT_VERTEX_SHAPE_COLOR);
@ -55,7 +52,7 @@ public class FcgComponent extends GraphComponent<FcgVertex, FcgEdge, FunctionCal
@Override
protected FcgVertex getInitialVertex() {
return fcGraph.getSource();
return graph.getSource();
}
@Override
@ -91,13 +88,6 @@ public class FcgComponent extends GraphComponent<FcgVertex, FcgEdge, FunctionCal
edgeRenderer.setDrawColorTransformer(satelliteEdgePaintTransformer);
}
@Override
public void dispose() {
fcGraph = null;
super.dispose();
}
@Override // open access for testing
public VisualGraphViewUpdater<FcgVertex, FcgEdge> getViewUpdater() {
return super.getViewUpdater();