From 0779c3b9403ffe7edbb9c6586f2d0d38b3510553 Mon Sep 17 00:00:00 2001 From: Yinan Zhou Date: Tue, 30 Jul 2024 10:15:51 -0400 Subject: [PATCH] Adjust X/YRel for transcription after reset Refs: https://github.com/DDMAL/Neon/issues/1231 --- src/page.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/page.cpp b/src/page.cpp index f336123d746..4b867e4efca 100644 --- a/src/page.cpp +++ b/src/page.cpp @@ -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()) {