From 7f818347d10bf29a8577ceec507ce4e4a0be25db Mon Sep 17 00:00:00 2001 From: Pedro Acebes Date: Wed, 12 Feb 2025 10:59:05 +0100 Subject: [PATCH] Update src/importexport/musicxml/internal/musicxml/export/exportmusicxml.cpp Co-authored-by: James Mizen --- .../musicxml/internal/musicxml/export/exportmusicxml.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/importexport/musicxml/internal/musicxml/export/exportmusicxml.cpp b/src/importexport/musicxml/internal/musicxml/export/exportmusicxml.cpp index 9781eb75f0326..2c7f00db7b602 100644 --- a/src/importexport/musicxml/internal/musicxml/export/exportmusicxml.cpp +++ b/src/importexport/musicxml/internal/musicxml/export/exportmusicxml.cpp @@ -8246,7 +8246,10 @@ void ExportMusicXml::writeMeasureTracks(const Measure* const m, spannerStop(this, starttrack, endtrack, seg->tick(), partRelStaffNo, spannersStopped); // We check if there are also dynamic annotations - if (seg->findAnnotation(ElementType::DYNAMIC, strack, etrack - 1)) { + for (EngravingItem* annotation : seg->annotations()) { + if (annotation->track() != track || !annotation->isTextBase()) { + continue; + } // Just to include them annotations(this, strack, etrack, track, partRelStaffNo, seg); }