mirror of
https://github.com/wassname/sloth.git
synced 2026-08-11 11:26:22 +08:00
fix PointItemInserter
This commit is contained in:
@@ -212,7 +212,7 @@ class PointItemInserter(ItemInserter):
|
||||
def mousePressEvent(self, event, index):
|
||||
pos = event.scenePos()
|
||||
ann = {'type': 'point',
|
||||
'x': event.pos().x(), 'y': event.pos().y()}
|
||||
'x': pos.x(), 'y': pos.y()}
|
||||
index.model().addAnnotation(index, ann)
|
||||
event.accept()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user