Merge branch

'GP-2514_ryanmkurtz_PR-4564_shocoman_fix-function-call-graph-positioning-bug'
into patch (Closes #4564)
This commit is contained in:
Ryan Kurtz 2022-08-31 22:09:53 -04:00
commit 85b506b7c6

View file

@ -172,6 +172,13 @@ public class FcgProvider
if (!graphData.hasResults()) {
return;
}
// The graph component won't contain valid perspective information if it's not 'initialized'
// (i.e. rendered or displayed to the user). It may happen if the graph has been kept minimized
// in the separate tab. Related method: `GraphComponent::viewerInitialized`
if (view.getGraphComponent().isUninitialized()) {
return;
}
GraphPerspectiveInfo<FcgVertex, FcgEdge> info = view.generateGraphPerspective();
graphData.setGraphPerspective(info);