프로젝트

일반

사용자정보

개정판 f688d463

IDf688d463a56aeb602712c9861408a82a404fb287
상위 ac2e45b1
하위 e0a734a3

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

issue #563: line no from to add only from condition

Change-Id: Ibd3a8f785817aca8325dc175804af1937717c44a

차이점 보기:

DTI_PID/DTI_PID/LineNoTracer.py
70 70
                else:
71 71
                    connected_items = connected_items[end:start + 1]
72 72
                    connected_items.reverse()
73
        elif _from and not _to and lineno.empty():
74
            connected_items = self.find_connected_objects(_from, primary=True, include_signal=include_signal)
73 75
        elif (not _from or not _to) and (1 == len(lineno.conns)):
74 76
            connected_items = self.find_connected_objects(lineno.conns[0], include_signal=include_signal)
75 77

  
......
207 209
                        _from.owner = line_no
208 210
                        _to.owner = line_no
209 211
                        line_no._fixed = True
212
                    elif _from and not _to and (type(_from) is QEngineeringLineItem or issubclass(type(_from), SymbolSvgItem)):
213
                        _from.owner = line_no
214
                        line_no._fixed = True
210 215
                    else:
211 216
                        line_no.set_property('From', None)
212 217
                        line_no.set_property('To', None)

내보내기 Unified diff