* 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:
Don Allingham
2003-10-27 03:48:13 +00:00
parent a2b1e36b89
commit 94a50f3c26
10 changed files with 65 additions and 25 deletions

View File

@@ -324,7 +324,11 @@ class RTFDoc(BaseDoc.BaseDoc):
#
#--------------------------------------------------------------------
def add_photo(self,name,pos,x_cm,y_cm):
im = ImgManip.ImgManip(name)
try:
im = ImgManip.ImgManip(name)
except:
return
nx,ny = im.size()
ratio = float(x_cm)*float(ny)/(float(y_cm)*float(nx))