개정판 ee9d5bf3
불필요한 if 문 조건 삭제
DTI_PID/DTI_PID/DTI_PID.py | ||
---|---|---|
67 | 67 |
ACCEPT_OVERLAY_AREA = 10 |
68 | 68 |
#endregion |
69 | 69 |
|
70 |
''' |
|
71 |
@history 2018.06.28 Jeongwoo Remove useless condition |
|
72 |
''' |
|
70 | 73 |
def checkTextInSymbol(pt): |
71 | 74 |
global searchedSymbolList |
72 | 75 |
|
... | ... | |
81 | 84 |
categoryCode = symId // 100 |
82 | 85 |
|
83 | 86 |
if symOcrOption != SymbolBase.OCR_OPTION_NOT_EXEC: |
84 |
if categoryCode != 99 and (pt[0] >= symSp[0] and pt[0] <= symSp[0] + symWidth) and (pt[1] >= symSp[1] and pt[1] <= symSp[1] + symHeight):
|
|
87 |
if (pt[0] >= symSp[0] and pt[0] <= symSp[0] + symWidth) and (pt[1] >= symSp[1] and pt[1] <= symSp[1] + symHeight): |
|
85 | 88 |
result = True |
86 | 89 |
break |
87 | 90 |
|
... | ... | |
152 | 155 |
else: |
153 | 156 |
return "NONE" |
154 | 157 |
|
158 |
''' |
|
159 |
@brief Remake rotated child symbol info |
|
160 |
''' |
|
155 | 161 |
def getRotatedChildInfo(additionalSymbol): |
156 | 162 |
tempChildInfo = "" |
157 | 163 |
if additionalSymbol: |
... | ... | |
333 | 339 |
additionalSymbol = targetSymbol.getAdditionalSymbol() |
334 | 340 |
isExceptDetect = targetSymbol.getIsExceptDetect() |
335 | 341 |
|
342 |
# check if symbol file is target or not |
|
336 | 343 |
if isExceptDetect == 1: |
337 | 344 |
item = QListWidgetItem('{} file is not target'.format(os.path.split(os.path.basename(symbolPath))[0])) |
338 | 345 |
item.setBackground(QColor('green')) |
내보내기 Unified diff