Correct a problem with thumbnails for PDFs. Not tested because I don't a

proper testing database for this.
http://www.gramps-project.org/bugs/view.php?id=2433
        * src/plugins/webreport/NarrativeWeb.py


svn: r11941
This commit is contained in:
Kees Bakker 2009-02-09 18:58:23 +00:00
parent c7edbc7cdd
commit 4e83f43a6c

View File

@ -1344,7 +1344,9 @@ class MediaPage(BasePage):
thmb_path, 320):
try:
path = self.report.build_path('preview', photo.handle)
self.report.copy_file(thmb_path, os.path.join(path, photo.handle) + '.png')
npath = os.path.join(path, photo.handle) + '.png'
self.report.copy_file(thmb_path, npath)
path = npath
os.unlink(thmb_path)
except IOError:
path = os.path.join('images', 'document.png')