Skip to content

PowerPoint file corrupted when setting adjustments of MSO_SHAPE.UP_DOWN_ARROW #674

@ok97465

Description

@ok97465

Hello.

I tried to modify the value of adjustments of MSO_SHAPE.UP_DOWN_ARROW.
But I couldn't open the ppt file. Maybe this problem is caused by the following lines.

python-pptx/pptx/spec.py

Lines 595 to 598 in b31cf20

MSO_SHAPE.UP_DOWN_ARROW: {
"basename": "Up-Down Arrow",
"avLst": (("adj1", 50000), ("adj1", 50000), ("adj2", 50000), ("adj2", 50000)),
},

I think that this should be changed:

    MSO_SHAPE.UP_DOWN_ARROW: {
        "basename": "Up-Down Arrow",
        "avLst": (("adj1", 50000), ("adj2", 50000)),
    },

Thank you for reading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions