The selection is lost and failure with R key by copying and pasting on multimeasasure rests

• Apr 21, 2016 - 16:40
Reported version
3.0
Priority
P0 - Critical
Type
Functional
Severity
S3 - Major
Status
closed
Regression
No
Workaround
No
Project

GIT commit b3cd356/ Windows7

1) "My First Score"
2) Enter some notes in the first measure
3) Press "M"
4) Copy-paste the first measure on the MM rest

Expected result: as with the 2.0.3: the blue rectangle is preserved
mm rests.jpg
Actual result: the blue rectangle is truncated, only the first "line" appears
blue rectangle.jpg

5) Now, select the pasted second measure
6) Press "R"

Result: the measure is pasted, but impossible to continue further by this way (since the blue rectangle is no longer shown, and so, the selection is lost)
blue trois.jpg

I get this result from this nightly on Avril 14, 2016: fe2eea4
I guess a side effect of the new layout?


Comments

Currently, this issue has worsened with: 95ee954

Steps:
1) "My First Score"
2) Enter a note in first measure
3) Exit Note input mode -> Press "M"
4) Select the first measure -> Press "R" key twice
5) Press "M"
Result: unexpected sort of double whole rests / longa rests
res.jpg
6) "N" -> enter a note in one of these measures

Result: crash

I don't see any blue lines but the selection is indeed lost in the given scenario.

This is somewhat related to layout corruptions and crashes described here:
#173381: Copy-paste a multimeasure rest on another one causes corruption after undo
When debugging that issue I noticed this problem too, and while this particular scenario does not lead to a crash a selection state after copy-paste is generally incorrect in many scenarios, and this leads to various bugs and crashes, especially with multi-measure rests.