Skip to content

Commit

Permalink
Fix #313821, GH#9852: Don't reset beams when resetting "Shapes and Po…
Browse files Browse the repository at this point in the history
…sition"

Backport of musescore#9864
  • Loading branch information
cbjeukendrup authored and Jojo-Schmitz committed Nov 28, 2021
1 parent be92f02 commit bf04337
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion libmscore/chord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2874,7 +2874,6 @@ Articulation* Chord::hasArticulation(const Articulation* aa)
void Chord::reset()
{
undoChangeProperty(Pid::STEM_DIRECTION, QVariant::fromValue<Direction>(Direction::AUTO));
undoChangeProperty(Pid::BEAM_MODE, int(Beam::Mode::AUTO));
score()->createPlayEvents(this);
ChordRest::reset();
}
Expand Down
10 changes: 0 additions & 10 deletions libmscore/rest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -774,16 +774,6 @@ void Rest::setTrack(int val)
dot->setTrack(val);
}

//---------------------------------------------------------
// reset
//---------------------------------------------------------

void Rest::reset()
{
undoChangeProperty(Pid::BEAM_MODE, int(Beam::Mode::NONE));
ChordRest::reset();
}

//---------------------------------------------------------
// mag
//---------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions libmscore/rest.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ class Rest : public ChordRest {
bool isGap() const { return _gap; }
virtual void setGap(bool v) { _gap = v; }

void reset() override;

virtual void add(Element*);
virtual void remove(Element*);

Expand Down

0 comments on commit bf04337

Please sign in to comment.