Skip to content

Commit ceb9c8c

Browse files
committed
Allow deleting chord parentheses
1 parent 389a5dc commit ceb9c8c

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/engraving/dom/chord.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,10 +786,20 @@ void Chord::remove(EngravingItem* e)
786786
{
787787
Articulation* a = toArticulation(e);
788788
if (!muse::remove(m_articulations, a)) {
789-
LOGD("ChordRest::remove(): articulation not found");
789+
LOGD("Chord::remove(): articulation not found");
790790
}
791791
}
792792
break;
793+
case ElementType::PARENTHESIS: {
794+
NoteParenthesisInfo* parenInfo = findNoteParenthesisInfo(toParenthesis(e));
795+
IF_ASSERT_FAILED(parenInfo) {
796+
LOGD() << "Chord::remove(): This parenthesis does not belong to this chord";
797+
return;
798+
}
799+
EditChord::removeChordParentheses(this, parenInfo->notes());
800+
break;
801+
}
802+
break;
793803
default:
794804
ChordRest::remove(e);
795805
return;

0 commit comments

Comments
 (0)