* src/docgen/AbiWordDoc2.py: make sure that an object is
an image before attempting to include in in a report * src/docgen/AbiWordDoc.py: make sure that an object is an image before attempting to include in in a report * src/docgen/KwordDoc.py: make sure that an object is an image before attempting to include in in a report * src/docgen/LaTeXDoc.py: make sure that an object is an image before attempting to include in in a report * src/docgen/OpenOfficeDoc.py: make sure that an object is an image before attempting to include in in a report * src/docgen/PdfDoc.py: make sure that an object is an image before attempting to include in in a report * src/docgen/RTFDoc.py: make sure that an object is an image before attempting to include in in a report * src/plugins/Ancestors.py: make sure that an object is an image before attempting to include in in a report * src/plugins/DetAncestralReport.py: make sure that an object is an image before attempting to include in in a report * src/plugins/DetDescendantReport.py: make sure that an object is an image before attempting to include in in a report svn: r2287
This commit is contained in:
@ -380,8 +380,13 @@ class LaTeXDoc(BaseDoc.BaseDoc):
|
||||
|
||||
def add_photo(self,name,pos,x,y):
|
||||
"""Add photo to report"""
|
||||
|
||||
try:
|
||||
pic = ImgManip.ImgManip(name)
|
||||
except:
|
||||
return
|
||||
|
||||
self.imagenum = self.imagenum + 1
|
||||
pic = ImgManip.ImgManip(name)
|
||||
picf = self.filename[:-4] + '_img' + str(self.imagenum) + '.eps'
|
||||
pic.eps_convert(picf)
|
||||
|
||||
|
Reference in New Issue
Block a user