Skip to content

UIMenu.RemoveItemAt with only 1 item in the menu throws DivideByZeroException #160

Open
@alexguirre

Description

@alexguirre

Probably the issue is in this line that doesn't check for Items.Count == 0:

newSelection = Common.Wrap(newSelection + directionStep, 0, Items.Count);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions