Skip to content

Sprite editor select tool jumbles the selection content when moved #1071

Description

@ddelemeny

Compiled from 92ced62 on ubuntu

Selecting beyond the frame of the sprite editor causes the selected content to get corrupted when moved around with the arrow keys.

Steps to reproduce :

  • open the sprite editor and center on a drawn part of the spritesheet
  • use the select tool and drag the selection outside of the canvas (leave some space to be able to move), release the mouse button but keep the mouse out of canvas
  • move the selection around with an arrow key -> content gets corrupted

bug_select

What's happening :

Keeping the mouse out of canvas prevents the release of the drag and the call to copySelection (set a breakpoint there to see it's not reached in that case). Therefore, when the selection is moved, it considers the pending selected area, but not the corresponding data.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions