프로젝트

일반

사용자정보

개정판 0c291a7c

ID0c291a7c76d0dd1ef4e371aaae615a5330d35263
상위 8e54a424
하위 bf1b20fb

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

issue #000: symbol can have no connection point, testing

차이점 보기:

DTI_PID/DTI_PID/RecognitionDialog.py
926 926
    def getCalculatedConnectionPoint(symbolConnectionPointStr, symbolRotatedAngle, rotateSymbolWidth, rotateSymbolHeight, originalSymbolWidth, originalSymbolHeight):
927 927
        res = []
928 928

  
929
        if symbolConnectionPointStr is not None:
929
        if symbolConnectionPointStr is not None and symbolConnectionPointStr != '':
930 930
            splitConnectionPointStr = symbolConnectionPointStr.split("/")
931 931
            for strConnPt in splitConnectionPointStr:
932 932
                tokens = strConnPt.split(',')
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py
196 196

  
197 197
            # setting connectors
198 198
            connectionPoints = symbolInfo.getConnectionPoint().split('/')
199
            #print(connectionPoints)
199 200
            for index in range(len(connectionPoints)):
201
                if connectionPoints[index] == '':
202
                    break
200 203
                tokens = connectionPoints[index].split(',')
201 204

  
202 205
                direction = 'AUTO'
DTI_PID/DTI_PID/SymbolEditorDialog.py
844 844
            infoTitle = self.ui.originalPointLabel.text()
845 845
            return (False, EXCEPTION_MSG_FORMAT.format(infoTitle))
846 846

  
847
        if not (self.ui.tableWidgetConnList.rowCount() > 0):
848
            infoTitle = self.ui.connectionPointLabel.text()
849
            return (False, EXCEPTION_MSG_FORMAT.format(infoTitle))
847
        #if not (self.ui.tableWidgetConnList.rowCount() > 0):
848
        #    infoTitle = self.ui.connectionPointLabel.text()
849
        #    return (False, EXCEPTION_MSG_FORMAT.format(infoTitle))
850 850
            
851 851
        return True, None
852 852

  

내보내기 Unified diff

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