개정판 0c291a7c
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