개정판 fb8758ec
issue #610: fix line drawing
Change-Id: I5269ec398f6e76db471154b8d5ef2830086d322e
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1596 | 1596 |
from LineDetector import LineDetector |
1597 | 1597 |
|
1598 | 1598 |
try: |
1599 |
app_doc_data = AppDocData.instance() |
|
1600 |
|
|
1599 | 1601 |
count = len(self.actionLine.tag._polyline._vertices) |
1600 | 1602 |
if count > 1: |
1601 | 1603 |
items = [] |
... | ... | |
1624 | 1626 |
|
1625 | 1627 |
items.append(lineItem) |
1626 | 1628 |
self.graphicsView.scene.addItem(lineItem) |
1629 |
app_doc_data.lines.append(lineItem) |
|
1627 | 1630 |
|
1628 | 1631 |
pt = items[-1].endPoint() |
1629 | 1632 |
selected = [item for item in self.graphicsView.scene.items(QPointF(pt[0], pt[1])) if |
내보내기 Unified diff