개정판 977947f8
fix autocad import mapping
Change-Id: Idb4a81fc7366d05fd8eb69510eb0f014db898816
DTI_PID/DTI_PID/ImportTextFromCADDialog.py | ||
---|---|---|
641 | 641 |
if autocad_symbol_item and autocad_symbol_item.text(): |
642 | 642 |
_index = self.ui.treeViewSymbolMapping.model().index(index.row(), 0, index.parent()) |
643 | 643 |
id2_symbol_item = self.ui.treeViewSymbolMapping.model().itemFromIndex(_index) |
644 |
if id2_symbol_item.text() not in self.ui.treeViewSymbolMapping.model()._autocad_symbols:
|
|
644 |
if autocad_symbol_item.text() not in self.ui.treeViewSymbolMapping.model()._autocad_symbols:
|
|
645 | 645 |
items = [QStandardItem(''), QStandardItem(autocad_symbol_item.text()), QStandardItem('')] |
646 | 646 |
items[0].setData(id2_symbol_item.data(Qt.UserRole), Qt.UserRole) |
647 | 647 |
for item in items: |
내보내기 Unified diff