From f8fc59905405f7dacce4ebfb5d4f3474a0b26050 Mon Sep 17 00:00:00 2001 From: Martin Baeuml Date: Fri, 23 Mar 2012 13:07:59 +0100 Subject: [PATCH] fix CopyAnnotationsPlugin, obeys prefix now --- sloth/plugins/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sloth/plugins/__init__.py b/sloth/plugins/__init__.py index f547663..07377fd 100644 --- a/sloth/plugins/__init__.py +++ b/sloth/plugins/__init__.py @@ -66,7 +66,7 @@ class CopyAnnotationsPlugin(QObject): for key in keys: if not self._prefix + key in annotation: return None - return [annotation[key] for key in keys] + return [annotation[self._prefix + key] for key in keys] def overlap(self, r1, r2): ia = float(self.area(self.intersect(r1, r2)))