프로젝트

일반

사용자정보

개정판 0b466a04

ID0b466a04431ecc7fde5b8d1ab3ad2cea64dd6656
상위 8701ed58
하위 3f1d6793

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

issue #563: fix text owner find

Change-Id: Ia841bd1407115ba6b7d65c87e1358352016090f7

차이점 보기:

DTI_PID/DTI_PID/Shapes/EngineeringTextItem.py
705 705
            target_symbols = []
706 706
            for symbol in symbols:
707 707
                attrs = symbol.getAttributes()
708

  
709
                freeze = False
710
                for attr in attrs:
711
                    if attr.Freeze:
712
                        freeze = True
713
                        break
714
                if freeze: continue
708 715
                for attr in attrs:
709 716
                    ret = attr.Codes.find_match_exactly(self.text())
710 717
                    if ret:
......
731 738
                    if ret:
732 739
                        target_attr = attr
733 740
                        break
734
                if selected.add_assoc_item(self, at=int(target_attr.AttrAt)):
741
                if target_attr.AssocItem is None and selected.add_assoc_item(self, at=int(target_attr.AttrAt)):
735 742
                    target_attr.AssocItem = self
736 743
                    self.owner = selected
737 744
                    return ret
745
                else:
746
                    return False
738 747
        except Exception as ex:
739 748
            from App import App 
740 749
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)

내보내기 Unified diff

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