Skip to content

Commit

Permalink
Do not carry over the syllable overlap when after a whole measure
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Nov 21, 2024
1 parent 9002dee commit 679e49b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/adjustsylspacingfunctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ FunctorCode AdjustSylSpacingFunctor::VisitSystemEnd(System *system)
int overlap = m_lastSyl->GetContentRight() - m_previousMeasure->GetRightBarLine()->GetAlignment()->GetXRel();
m_previousVerse->AdjustPosition(overlap, m_freeSpace, m_doc);

if (overlap > 0) {
// If the previous verse was not in the previous measure (but before), ignore the overlap because it is
// not likely to go over the whole following measure
if ((m_previousMeasure == m_previousVerse->GetFirstAncestor(MEASURE)) && (overlap > 0)) {
m_overlappingSyl.push_back(std::make_tuple(
m_previousVerse->GetAlignment(), m_previousMeasure->GetRightBarLine()->GetAlignment(), overlap));
}
Expand Down

0 comments on commit 679e49b

Please sign in to comment.