mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-22 04:05:39 +00:00
GP-4656 - Fixed issue loading FCG when starting fully-zoomed in
This commit is contained in:
parent
bbd11bd1e0
commit
ddaa6a35b8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user