Skip to content

Commit

Permalink
fix #309592: pasting a measure with "above" breaths/pauses flips them…
Browse files Browse the repository at this point in the history
… to "below"

See musescore#4220, the copy-and-paste case was missed, causing this regression.
  • Loading branch information
Harmoniker1 committed Aug 25, 2020
1 parent bd675e7 commit af0e93b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libmscore/paste.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,9 @@ bool Score::pasteStaff(XmlReader& e, Segment* dst, int dstStaff, Fraction scale)
}
else if (tag == "Breath") {
Breath* breath = new Breath(this);
breath->read(e);
breath->setTrack(e.track());
breath->setPlacement(breath->track() & 1 ? Placement::BELOW : Placement::ABOVE);
breath->read(e);
Fraction tick = doScale ? (e.tick() - dstTick) * scale + dstTick : e.tick();
Measure* m = tick2measure(tick);
if (m->tick() == tick)
Expand Down

0 comments on commit af0e93b

Please sign in to comment.