개정판 9f825e0f
issue #000: fix duplicated text item
Change-Id: Ib597c883d9ca5b4e86ec743e7f1e6d2f874c16db
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1763 | 1763 |
item.angle = angle |
1764 | 1764 |
item.area = textInfo[0] |
1765 | 1765 |
#self.addTextItemToScene(item) |
1766 |
appDocData.texts.append(item) |
|
1766 |
#appDocData.texts.append(item)
|
|
1767 | 1767 |
appDocData.allItems.append(item) |
1768 | 1768 |
except Exception as ex: |
1769 | 1769 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
... | ... | |
1899 | 1899 |
item.area = 'Drawing' |
1900 | 1900 |
item.transfer.onRemoved.connect(self.itemRemoved) |
1901 | 1901 |
#self.addTextItemToScene(item) |
1902 |
appDocData.texts.append(item) |
|
1902 |
#appDocData.texts.append(item)
|
|
1903 | 1903 |
appDocData.allItems.append(item) |
1904 | 1904 |
except Exception as ex: |
1905 | 1905 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
... | ... | |
1936 | 1936 |
item.angle = angle |
1937 | 1937 |
item.area = textInfoMap[0] |
1938 | 1938 |
item.transfer.onRemoved.connect(self.itemRemoved) |
1939 |
appDocData.texts.append(item) |
|
1939 |
#appDocData.texts.append(item)
|
|
1940 | 1940 |
appDocData.allItems.append(item) |
1941 | 1941 |
except Exception as ex: |
1942 | 1942 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
내보내기 Unified diff