프로젝트

일반

사용자정보

개정판 30b8dfd2

ID30b8dfd2b34660cd4ce7abba8c2996f6554ea436
상위 d3162ecb
하위 9d0da00d, c9264d17

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

issue #538: symbol conn edit allowed

Change-Id: I751dc7c0bec41aa521c5aefeebec5fe0b919ae93

차이점 보기:

DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py
685 685
                self.connectors[index].setPos((x, y))
686 686
                self.connectors[index].connectPoint = (x, y)
687 687
                # recognized_pt is only valid right after symbol is recognized
688
                self.connectors[index].recognized_pt = (connPts[index][0], connPts[index][1]) if \
689
                    len(connPts[index]) == 2 else (connPts[index][1], connPts[index][2]) if \
690
                    len(connPts[index]) == 3 else (connPts[index][1], connPts[index][2]) if \
691
                    len(connPts[index]) == 4 else None
688
                if index < len(connPts):
689
                    self.connectors[index].recognized_pt = (connPts[index][0], connPts[index][1]) if \
690
                        len(connPts[index]) == 2 else (connPts[index][1], connPts[index][2]) if \
691
                        len(connPts[index]) == 3 else (connPts[index][1], connPts[index][2]) if \
692
                        len(connPts[index]) == 4 else None
692 693
                # up to here
693 694
            self.parentSymbol = parentSymbol
694 695
            self.childSymbol = childSymbol

내보내기 Unified diff

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