Skip to content

Commit

Permalink
Drop ties in PAE import when first note encountered does not match
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Jul 20, 2022
1 parent 650ad15 commit 5fe6284
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/iopae.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4162,17 +4162,17 @@ bool PAEInput::ConvertTie()
if (note->GetOct() != tokenNote->GetOct() || note->GetPname() != tokenNote->GetPname()) {
if (m_isMensural && tieToken) {
// This is probably a ligature - reset it back
delete tie;
tie = NULL;
tieToken->m_object = NULL;
tieToken->m_char = '+';
tieToken = NULL;
note = NULL;
}
else {
LogPAE(ERR_037_TIE_PITCH, token);
if (m_pedanticMode) return false;
}
delete tie;
tie = NULL;
tieToken->m_object = NULL;
tieToken = NULL;
note = NULL;
}
else {
tie->SetEndid("#" + tokenNote->GetID());
Expand Down

0 comments on commit 5fe6284

Please sign in to comment.