fix #15787
fix crash when copy/paste measures with slurs