Skip to content

Commit

Permalink
fix #28006
Browse files Browse the repository at this point in the history
  • Loading branch information
BartlomiejLewandowski committed Jul 20, 2014
1 parent 8cc66dd commit 60a769c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libmscore/paste.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ void Score::pasteStaff(XmlReader& e, Segment* dst, int staffIdx)
Element* e = 0;
Segment* s = s1;
bool found = false;
while (!found && s != s2->next1MM()) {
if (s2)
s2 = s2->next1MM();
while (!found && s != s2) {
for (int i = dstStaffStart * VOICES; i < (endStaff + 1) * VOICES; i++) {
e = s->element(i);
if (e) {
Expand Down

0 comments on commit 60a769c

Please sign in to comment.