fix position bug of the parameter plugged into a pTarget

This commit is contained in:
yyc12345 2020-04-13 19:29:25 +08:00
parent 71885d70ba
commit c1b3dfbfff

View File

@ -507,7 +507,7 @@ def buildCell(exDb, deDb, target, currentGraphBlockCell):
def computCellPosition(baseX, baseY, height, direction, index):
if (index == -1):
return (0, 0)
return (baseX, baseY - dcv.GRAPH_SPAN_BB_PLOCAL)
if (direction == 0):
return (baseX + dcv.BB_POFFSET + index * (dcv.BB_PBSIZE + dcv.BB_PSPAN), baseY - dcv.GRAPH_SPAN_BB_PLOCAL)