Skip to content

Commit

Permalink
Adjust X/YRel for transcription after reset
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanazhou committed Jul 30, 2024
1 parent d9e7c87 commit 0779c3b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/page.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,13 @@ void Page::ResetAligners()
AlignVerticallyFunctor alignVertically(doc);
this->Process(alignVertically);

if (doc->IsNeumeLines()) {
AdjustXRelForTranscriptionFunctor adjustXRelForTranscription;
this->Process(adjustXRelForTranscription);
AdjustYRelForTranscriptionFunctor adjustYRelForTranscription;
this->Process(adjustYRelForTranscription);
}

// Unless duration-based spacing is disabled, set the X position of each Alignment.
// Does non-linear spacing based on the duration space between two Alignment objects.
if (!doc->GetOptions()->m_evenNoteSpacing.GetValue()) {
Expand Down

0 comments on commit 0779c3b

Please sign in to comment.