Skip to content

Commit

Permalink
fix deletion of spanners
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Mar 6, 2015
1 parent b434986 commit dacabe8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libmscore/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1724,7 +1724,11 @@ void Score::deleteItem(Element* el)
case Element::Type::PEDAL_SEGMENT:
// case Element::Type::LYRICSLINE_SEGMENT:
case Element::Type::GLISSANDO_SEGMENT:
{
el = static_cast<SpannerSegment*>(el)->spanner();
undoRemoveElement(el);
}
break;

case Element::Type::STEM_SLASH: // cannot delete this elements
case Element::Type::HOOK:
Expand Down

0 comments on commit dacabe8

Please sign in to comment.