Skip to content

Commit

Permalink
fix #120356: clear selection if we end is before start
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Mar 29, 2017
1 parent 41ab3d2 commit d9d86fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libmscore/paste.cpp
Expand Up @@ -423,9 +423,8 @@ PasteStatus Score::pasteStaff(XmlReader& e, Segment* dst, int dstStaff)
// }
// sanity check on selection
if (s1 && s2 && s1->tick() >= s2->tick()) {
// just select the start measure
s1 = s1->measure()->first();
s2 = s1->measure()->last();
_selection.clear();
return PasteStatus::PS_NO_ERROR;
}
int endStaff = dstStaff + staves;
if (endStaff > nstaves())
Expand Down

0 comments on commit d9d86fb

Please sign in to comment.