From fe64fe12145af7aea8c2caf970e4c42f50883695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Wed, 29 Jul 2009 17:39:59 +0000 Subject: [PATCH] #2776: Thumbnail images in report output do not take referenced area into account (patch provided by lomo) svn: r12851 --- src/plugins/graph/GVFamilyLines.py | 4 ++-- src/plugins/graph/GVRelGraph.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/graph/GVFamilyLines.py b/src/plugins/graph/GVFamilyLines.py index 5aa15366c..5a0266b60 100644 --- a/src/plugins/graph/GVFamilyLines.py +++ b/src/plugins/graph/GVFamilyLines.py @@ -847,8 +847,8 @@ class FamilyLinesReport(Report): if mediaMimeType[0:5] == "image": imagePath = ThumbNails.get_thumbnail_path( Utils.media_path_full(self._db, - media.get_path()) - ) + media.get_path()), + rectangle=mediaList[0].get_rectangle()) # put the label together and ouput this person label = u"" diff --git a/src/plugins/graph/GVRelGraph.py b/src/plugins/graph/GVRelGraph.py index fe8a26bf4..1ad0338e2 100644 --- a/src/plugins/graph/GVRelGraph.py +++ b/src/plugins/graph/GVRelGraph.py @@ -346,7 +346,8 @@ class RelGraphReport(Report): if mediaMimeType[0:5] == "image": imagePath = ThumbNails.get_thumbnail_path( Utils.media_path_full(self.database, - media.get_path())) + media.get_path()), + rectangle=mediaList[0].get_rectangle()) # test if thumbnail actually exists in thumbs # (import of data means media files might not be present imagePath = Utils.find_file(imagePath)