diff --git a/libmscore/chord.cpp b/libmscore/chord.cpp index 61c8e6815d92..6ec22247816d 100644 --- a/libmscore/chord.cpp +++ b/libmscore/chord.cpp @@ -2764,6 +2764,8 @@ void Chord::reset() void Chord::setStemSlash(StemSlash* s) { + if (_stemSlash && _stemSlash->selected()) + score()->selection().remove(_stemSlash); delete _stemSlash; _stemSlash = s; } diff --git a/libmscore/stem.cpp b/libmscore/stem.cpp index bdf59b6ab5b2..a2a1fc91f7f3 100644 --- a/libmscore/stem.cpp +++ b/libmscore/stem.cpp @@ -182,7 +182,6 @@ void Stem::draw(QPainter* painter) const path.closeSubpath(); y += displ; } -// setbbox(path.boundingRect()); painter->setBrush(QBrush(curColor())); painter->setPen(Qt::NoPen); painter->drawPath(path);