diff --git a/sceneitems/annotationitem.py b/sceneitems/annotationitem.py index b6ca860..e9bcad9 100644 --- a/sceneitems/annotationitem.py +++ b/sceneitems/annotationitem.py @@ -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()