mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
Function Graph - fixed bug when routing edge upward that caused the edge
to have a dongle
This commit is contained in:
parent
ab5e715607
commit
48ea271f00
1 changed files with 3 additions and 0 deletions
|
@ -502,6 +502,9 @@ public class DecompilerNestedLayout extends AbstractFGLayout {
|
||||||
//
|
//
|
||||||
|
|
||||||
int delta = end.rowIndex - start.rowIndex;
|
int delta = end.rowIndex - start.rowIndex;
|
||||||
|
if (delta < 0) {
|
||||||
|
delta = -delta; // going up
|
||||||
|
}
|
||||||
int multiplier = EDGE_ENDPOINT_DISTANCE_MULTIPLIER;
|
int multiplier = EDGE_ENDPOINT_DISTANCE_MULTIPLIER;
|
||||||
if (useSimpleRouting()) {
|
if (useSimpleRouting()) {
|
||||||
multiplier = 1; // we allow edges to overlap with 'simple routing'
|
multiplier = 1; // we allow edges to overlap with 'simple routing'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue