개정판 078933cd
issue #000: conn line fix typo
Change-Id: Id6e06637b803214515c3605338cc19bdc149e973
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
200 | 200 |
lineno.conns.clear() |
201 | 201 |
minDist = None |
202 | 202 |
startLine = None |
203 |
for line in [line for line in lineno.runs[0].items if type(line) is QEngineeringLineItem and (line._lineType == 'Primary' or line._lineType == 'Secondary' or line._lineType == 'Connect to Process')]:
|
|
203 |
for line in [line for line in lineno.runs[0].items if type(line) is QEngineeringLineItem and (line._lineType == 'Primary' or line._lineType == 'Secondary' or line._lineType == 'Connect To Process')]:
|
|
204 | 204 |
dist = line.distanceTo((lineno.center().x(), lineno.center().y())) |
205 | 205 |
if (minDist is None) or (dist < minDist): |
206 | 206 |
minDist = dist |
내보내기 Unified diff