개정판 877ba95c
issue #563: except eq for trim
Change-Id: I2c5fae757028dac7c223147f3252b776674cd849
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
160 | 160 |
from SymbolSvgItem import SymbolSvgItem |
161 | 161 |
from EngineeringRunItem import QEngineeringRunItem |
162 | 162 |
from QEngineeringTrimLineNoTextItem import QEngineeringTrimLineNoTextItem |
163 |
from EngineeringEquipmentItem import QEngineeringEquipmentItem |
|
163 | 164 |
|
164 | 165 |
try: |
165 | 166 |
docData = AppDocData.instance() |
... | ... | |
229 | 230 |
updateProgress.emit(-1) # reset progressbar |
230 | 231 |
displayMessage.emit('Unknown line Topology Construction') |
231 | 232 |
orphanLines = [line for line in self._lines if line.owner is None] |
232 |
orphanSymbols = [symbol for symbol in self._symbols if symbol.owner is None] |
|
233 |
orphanSymbols = [symbol for symbol in self._symbols if symbol.owner is None and type(symbol) is not QEngineeringEquipmentItem]
|
|
233 | 234 |
if orphanLines + orphanSymbols: |
234 | 235 |
self.maxValue = len(orphanLines) + 1 |
235 | 236 |
orphanLines = sorted(orphanLines, key=lambda param:param.length(), reverse=True) |
내보내기 Unified diff