System::scanElements collects TIE_SEGMENTs when it should not

• Feb 19, 2020 - 21:13
Reported version
3.4
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
PR created
Regression
No
Workaround
No
Project

Not something you can see in the program, you must look in the debugger. Open the attached score and stick a breakpoint at this line in file.cpp:
https://github.com/musescore/MuseScore/blob/6bea8e24ae3bcdea8bc8515a49b…
Then look at the contents of the pel variable in the debugger. You'll see 3 tie segments at the end of the list. Those 3 are duplicates of elements already added to the list by MeasureBase::scanElements() (see Page::scanElements() for the calls to System:scanElements() and MeasureBase::scanElements()).
I have a very simple fix that excludes TIE elements from System::scanElements(). The PR is here:
https://github.com/musescore/MuseScore/pull/5735

Attachment Size
testties.mscz 3.21 KB