* 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:
@@ -559,6 +559,8 @@ class DetDescendantReport(Report.Report):
|
||||
|
||||
photos= person.getPhotoList()
|
||||
for photo in photos :
|
||||
if photo.getMimeType()[0:5] != "image":
|
||||
continue
|
||||
attribs= photo.getAttributeList()
|
||||
for attrib in attribs :
|
||||
if attrib.getType() == tag:
|
||||
@@ -577,6 +579,8 @@ class DetDescendantReport(Report.Report):
|
||||
photos= person.getPhotoList()
|
||||
numPhotos= 0 # Number of photos
|
||||
for photo in photos :
|
||||
if photo.getMimeType()[0:5] != "image":
|
||||
continue
|
||||
attribs= photo.getAttributeList()
|
||||
for attrib in attribs :
|
||||
if attrib.getType() == tag:
|
||||
|
||||
Reference in New Issue
Block a user