fix(pptx): check if picture shape has an image attached (#1316)
Check if picture shape has an image attached in pptx backend Signed-off-by: Maksym Lysak <mly@zurich.ibm.com> Co-authored-by: Maksym Lysak <mly@zurich.ibm.com>
This commit is contained in:
parent
bfcab3d677
commit
dc3bf9ceac
@ -392,9 +392,10 @@ class MsPowerpointDocumentBackend(DeclarativeDocumentBackend, PaginatedDocumentB
|
||||
self.handle_tables(shape, parent_slide, slide_ind, doc, slide_size)
|
||||
if shape.shape_type == MSO_SHAPE_TYPE.PICTURE:
|
||||
# Handle Pictures
|
||||
self.handle_pictures(
|
||||
shape, parent_slide, slide_ind, doc, slide_size
|
||||
)
|
||||
if hasattr(shape, "image"):
|
||||
self.handle_pictures(
|
||||
shape, parent_slide, slide_ind, doc, slide_size
|
||||
)
|
||||
# If shape doesn't have any text, move on to the next shape
|
||||
if not hasattr(shape, "text"):
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user