Trimming twice ruins SPR zooming keyframes

What is your operating system?
Windows 10 x64

What is your Shotcut version (see Help > About Shotcut)?
24.11.17

Can you repeat the problem? If so, what are the steps?
This might apply to other cases but the usual workflow is when adding an image I then add a small zoom in with a keyframe and sometime later I trim the end. Sometimes this breaks the zooming sometimes not, but I found some steps that always reproduces the bug:

  • new project, add image, set duration to 10s, add to timeline
  • add a SPR filter on the image, enable keyframing, set 100% at start, 150% zoom at the end
  • go to the 9s mark and trim out “O” (or shift O)
  • save project, close, then open project again.
  • at this point everything is still correct, the issue appears when you trim again the end:
    • go to the 8s mark and hit O to trim another second of the end, playback the result:
      → the filter UI shows the correct zooming but the players shows something getting smaller and towards top left

Workaround for a quick fix: move the playhead at the very end of the clip and scroll the zoom value manually a bit (+/-0.2) and the result will snap back to the correct one.