개정판 b442783b
issue #000: fix note
Change-Id: Icf85f226d7966730a7174bd038015fb6c9ba48b8
DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py | ||
---|---|---|
139 | 139 |
res = [] |
140 | 140 |
for key in self._associations.keys(): |
141 | 141 |
index = 0 |
142 |
for assoc in self._associations[key]:
|
|
142 |
for assoc in list(set(self._associations[key])):
|
|
143 | 143 |
# find owner with uid |
144 | 144 |
if assoc and type(assoc) is uuid.UUID: |
145 | 145 |
matches = [x for x in self.scene().items() if hasattr(x, 'uid') and str(x.uid) == str(assoc)] |
DTI_PID/DTI_PID/TextItemFactory.py | ||
---|---|---|
278 | 278 |
for symbol in appDocData.symbols: |
279 | 279 |
if symbol.name in symbol_names and symbol.includes(textInfo.center): |
280 | 280 |
item = QEngineeringNoteItem(symbol=symbol) |
281 |
symbol.add_assoc_item(item) |
|
281 |
#symbol.add_assoc_item(item)
|
|
282 | 282 |
item.owner = symbol |
283 | 283 |
break |
284 | 284 |
else: |
내보내기 Unified diff