프로젝트

일반

사용자정보

개정판 af4868b8

IDaf4868b837b50f3a2107102fe00a156fc25f3a19
상위 8625e97c
하위 f9e7a631, d4373bc6

함의성이(가) 5년 이상 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)