From 5a8ccb6d451846ae7f86a3aff14a7cd3e17313b8 Mon Sep 17 00:00:00 2001 From: James Mizen Date: Fri, 10 May 2024 15:12:52 +0100 Subject: [PATCH] Fix broken beaming of dotted notes and rests --- src/engraving/dom/chordrest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engraving/dom/chordrest.cpp b/src/engraving/dom/chordrest.cpp index b2e3518fb028..643655a574a2 100644 --- a/src/engraving/dom/chordrest.cpp +++ b/src/engraving/dom/chordrest.cpp @@ -659,12 +659,12 @@ Slur* ChordRest::slur(const ChordRest* secondChordRest) const void ChordRest::undoChangeProperty(Pid id, const PropertyValue& newValue, PropertyFlags ps) { if (id == Pid::BEAM_MODE) { - if (ticks() > Fraction(1, 8)) { + if (m_durationType.hooks() == 0) { return; } BeamMode newBeamMode = newValue.value(); - if ((newBeamMode == BeamMode::BEGIN16 && ticks() > Fraction(1, 16)) - || (newBeamMode == BeamMode::BEGIN32 && ticks() > Fraction(1, 32))) { + if ((newBeamMode == BeamMode::BEGIN16 && m_durationType.hooks() < 2) + || (newBeamMode == BeamMode::BEGIN32 && m_durationType.hooks() < 3)) { return; } }