Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ def get_shape_content(shape, **kwargs):
sorted_shapes = sorted(
shape.shapes,
key=lambda x: (
float("-inf") if not x.top else x.top,
float("-inf") if not x.left else x.left,
float("-inf") if x.top is None else x.top,
float("-inf") if x.left is None else x.left,
Comment on lines +192 to +193
),
)
for subshape in sorted_shapes:
Expand All @@ -199,8 +199,8 @@ def get_shape_content(shape, **kwargs):
sorted_shapes = sorted(
slide.shapes,
key=lambda x: (
float("-inf") if not x.top else x.top,
float("-inf") if not x.left else x.left,
float("-inf") if x.top is None else x.top,
float("-inf") if x.left is None else x.left,
),
)
for shape in sorted_shapes:
Expand Down