From 9d8870f20ab09115e05d6b64737182563a7fb949 Mon Sep 17 00:00:00 2001 From: Martin Baeuml Date: Thu, 5 May 2011 17:48:28 +0200 Subject: [PATCH] fix PointItemInserter --- sceneitems/annotationitem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()