From da8cb286cdaac76b42fb0b7cf9049bb536705a2a Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Wed, 27 Mar 2013 19:57:17 +0000 Subject: [PATCH] 6443: try to use remove unused objects tool svn: r21771 --- gramps/plugins/tool/removeunused.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/tool/removeunused.py b/gramps/plugins/tool/removeunused.py index cb1a49761..c9b561cd8 100644 --- a/gramps/plugins/tool/removeunused.py +++ b/gramps/plugins/tool/removeunused.py @@ -33,6 +33,7 @@ from __future__ import with_statement from gramps.gen.const import GRAMPS_LOCALE as glocale _ = glocale.get_translation().gettext +from gramps.gen.constfunc import handle2internal #------------------------------------------------------------------------ # @@ -277,7 +278,8 @@ class RemoveUnused(tool.Tool, ManagedWindow, UpdateCallback): fbh = db.find_backlink_handles for handle, data in cursor: if not any(h for h in fbh(handle)): - self.add_results((the_type, handle, data)) + self.add_results((the_type, handle2internal(handle), + data)) self.update() self.reset()