Skip to content

Commit 81a9645

Browse files
committed
add portability hack for tweaked notes
1 parent b6cba74 commit 81a9645

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libmscore/chord.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,14 @@ void Chord::read(XmlReader& e)
930930
}
931931
}
932932
}
933+
// hack:
934+
if (_notes.size() == 1 && readPos().isNull()) {
935+
Note* note = _notes.front();
936+
if (!note->readPos().isNull()) {
937+
setReadPos(QPointF(note->readPos().x(), 0.0));
938+
note->setReadPos(QPointF(0.0, note->readPos().y()));
939+
}
940+
}
933941
}
934942

935943
//---------------------------------------------------------

0 commit comments

Comments
 (0)