From c1b3dfbffff7c3a454251a697f7f92a96726cbe5 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Mon, 13 Apr 2020 19:29:25 +0800 Subject: [PATCH] fix position bug of the parameter plugged into a pTarget --- SuperScriptViewer/DecoratorCore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SuperScriptViewer/DecoratorCore.py b/SuperScriptViewer/DecoratorCore.py index 38a9509..d1920b5 100644 --- a/SuperScriptViewer/DecoratorCore.py +++ b/SuperScriptViewer/DecoratorCore.py @@ -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)