[1.0] Beat corruption in copy paste of partial measure

• Jan 17, 2011 - 03:57
S2 - Critical

Steps to reproduce bug
1. Open attached file: "beat corruption.mscz"
2. Select measures 1-12, top staff
3. Edit > Copy
4. Select measure 2, bottom staff
5. Edit > Paste

Expected behavior: All measures should have the same number of beats for the top staff and the bottom staff

Actual behavior: Measure 13 has four beats in the top staff (as expected) but only two beats in the bottom staff

Discussion: Measure 6 and 11 are partial measures with only 2 beats per measure (as specified in the Measure Properties dialog). I don't fully understand all the steps but so far they seem to be needed to reproduce the bug.

MuseScore version: 1.0pre1, rev. 3882

(Operating System: Windows 7)


Status (old) active fixed

Copy&Paste cannot handle full measure rests as the information of the source measure duration gets lost.
The (partial) solution was to convert full measure rests to normal rests during the copy operation. This will fail for measure durations which cannot expressed by a single rest.
The problem is solved in the trunk by a different implementation on how durations and duration types are handled. Unfortunatly it cannot easily backported.