fix PointItemInserter

This commit is contained in:
Martin Baeuml
2011-05-05 17:48:28 +02:00
parent 258988937d
commit 9d8870f20a
+1 -1
View File
@@ -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()