Patch by Adam Stein <adam@csh.rit.edu > - Continued work on "0002513: Using section/region on media_ref as thumbnail on reports" - add image cropping to Individual report.
svn: r18119
This commit is contained in:
parent
c4d4762c30
commit
4b3e119faa
@ -558,7 +558,9 @@ class IndivCompleteReport(Report):
|
||||
filename = media_path_full(self.database, media.get_path())
|
||||
if os.path.exists(filename):
|
||||
self.doc.start_paragraph("IDS-Normal")
|
||||
self.doc.add_media_object(filename, "right", 4.0, 4.0)
|
||||
self.doc.add_media_object(filename, "right", 4.0, 4.0,
|
||||
style_name="DDR-Caption",
|
||||
crop=media_list[0].get_rectangle())
|
||||
self.doc.end_paragraph()
|
||||
else:
|
||||
WarningDialog(_("Could not add photo to page"),
|
||||
|
Loading…
Reference in New Issue
Block a user