Skip to content

Commit

Permalink
DO NOT MERGE - Scan ties twice to show passing vtests
Browse files Browse the repository at this point in the history
This commit will be removed before merging,
it is only to demonstrate that all vtests other than ties are passing
and only the behaviour for ties has changed.
  • Loading branch information
krkartikay committed Jul 17, 2020
1 parent 17ffd0a commit 3458fc6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libmscore/note.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2360,6 +2360,13 @@ QString Note::noteTypeUserName() const
void Note::scanElements(void* data, void (* func)(void*, Element*), bool all)
{
ScoreElement::scanElements(data, func, all);
// FOR DEMONSTRATION - DO NOT MERGE ===================
if (tieBack()) { // scan tieBack (twice) to match old behaviour
for (ScoreElement* tieSegments : *tieBack()) {
tieSegments->scanElements(data, func, all);
}
}
// ====================================================
if (all || visible() || score()->showInvisible()) {
func(data, this);
}
Expand Down

0 comments on commit 3458fc6

Please sign in to comment.