Skip to content

Commit

Permalink
fix #20233: Pedal marks not deletable
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Mar 21, 2013
1 parent 555a83a commit d6b2062
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions libmscore/edit.cpp
Expand Up @@ -1085,6 +1085,7 @@ void Score::deleteItem(Element* el)
case Element::TEXTLINE_SEGMENT:
case Element::VOLTA_SEGMENT:
case Element::SLUR_SEGMENT:
case Element::PEDAL_SEGMENT:
undoRemoveElement(static_cast<SpannerSegment*>(el)->spanner());
break;

Expand Down
5 changes: 4 additions & 1 deletion mscore/propertymenu.cpp
Expand Up @@ -234,7 +234,10 @@ void ScoreView::createElementPropertyMenu(Element* e, QMenu* popup)
popup->addAction(tr("MIDI Properties..."))->setData("d-dynamics");
popup->addAction(tr("Text Properties..."))->setData("d-props");
}
else if (e->type() == Element::TEXTLINE_SEGMENT || e->type() == Element::OTTAVA_SEGMENT) {
else if (e->type() == Element::TEXTLINE_SEGMENT
|| e->type() == Element::OTTAVA_SEGMENT
|| e->type() == Element::VOLTA_SEGMENT
|| e->type() == Element::PEDAL_SEGMENT) {
if (e->visible())
popup->addAction(tr("Set Invisible"))->setData("invisible");
else
Expand Down

0 comments on commit d6b2062

Please sign in to comment.