From ed40c579980ab312bb1d063c19b3ed383deacac0 Mon Sep 17 00:00:00 2001 From: Mika Fischer Date: Thu, 30 Jun 2011 18:30:39 +0200 Subject: [PATCH] Fix bug in AnnotationScene --- sloth/gui/annotationscene.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sloth/gui/annotationscene.py b/sloth/gui/annotationscene.py index 302d93f..b1faf72 100644 --- a/sloth/gui/annotationscene.py +++ b/sloth/gui/annotationscene.py @@ -267,7 +267,7 @@ class AnnotationScene(QGraphicsScene): # this is the implemenation of the scene as a view of the model #______________________________________________________________________________________________________ def dataChanged(self, indexFrom, indexTo): - if self.image_item_ is None or self.image_item_.index() != indexFrom.parent(): + if self.image_item_ is None or self.image_item_.index() != indexFrom.parent().parent(): return item = self.itemFromIndex(indexFrom.parent())