Crash after moving clip with filter

Here is how to reproduce it:

  1. Create two tracks on the timeline.
  2. Drag and drop an image or video to Track 2.
  3. Add a size, position, and rotate filter to that clip. Change some parameters.
  4. Save.
  5. Close Shotcut, start Shotcut, and open the saved mlt.
  6. Move the clip from Track 2 to Track 1.
  7. Increase the duration of the clip by dragging the right edge of the clip.
  8. Undo twice.
  9. Redo twice.

I haven’t checked if any other filter would cause the crash.