Skip to content

Undo does not work correctly after cropping an image with Ctrl+drag corner #1049

@patriciafmed

Description

@patriciafmed

Summary

Undoing a crop operation performed via Ctrl+drag on a corner handle does not work correctly. Neither Ctrl+Z nor the undo button revert the crop. Repeatedly pressing undo eventually causes the image to disappear entirely from the canvas.

Steps to reproduce

  1. Place an image on the canvas.
  2. Hold Ctrl and drag a corner handle to crop the image.
  3. Press Ctrl+Z or click the undo button to revert the crop.

Result:

  • The crop is not reverted.
  • If undo is pressed multiple times, the image eventually disappears from the canvas.

Expected result:

  • Each undo step should revert one crop operation.
  • The image should never disappear as a result of undoing a crop.

Additional context

Observed in the Inspiration showcase. The issue affects both the keyboard shortcut (Ctrl+Z) and the undo button in the UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions