개정판 af4868b8
issue #587: fix conn line
Change-Id: I92f09746e6cc0c343fd2f4c3bb0f01a208fdc458
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
195 | 195 |
lines_and_symbols = self._lines + self._symbols |
196 | 196 |
self.find_secondary_lines(lines_and_symbols) |
197 | 197 |
|
198 |
# double check conn line cuz startLine may need first
|
|
198 |
# double check conn line cuz startLine may need at first step
|
|
199 | 199 |
for lineno in self._lineNos: |
200 | 200 |
lineno.conns.clear() |
201 | 201 |
minDist = None |
202 | 202 |
startLine = None |
203 |
for line in [line for line in self._lines if line.owner is lineno]:
|
|
203 |
for line in [line for line in lineno.runs[0].items if type(line) is QEngineeringLineItem and line._lineType == 'Primary']:
|
|
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