fix #31151: crash on add of frame from linked part
Merge pull request #1238 from MarcSabatella/31151-frame-part-crash

fix #31151: crash on add of frame from linked part