Skip to content

[BUG] Redo deletes start edge instead of element #892

@matKlju

Description

@matKlju

Bug description:
When adding an element, deleting it, and then performing undo and redo, the behavior is inconsistent. Undo correctly restores the element, but redo deletes the start edge instead of removing the element.

Expected behavior:
Redo should reapply the last undone action consistently. After undo restores the deleted element, redo should delete the element again, not modify unrelated edges.

Screenshots:

redo_edge.zip

Additional information:
Repro steps:

  1. Add an element
  2. Delete the element
  3. Undo
    • Result: element is restored
  4. Redo

Result:

  • Start edge is deleted
  • Element remains on canvas

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv3.2

Type

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions