Skip to content

Commit

Permalink
Merge pull request #5550 from Kartikay26/278169-image-attached-to-rest
Browse files Browse the repository at this point in the history
fix #278169: images attached to rests not imported from MuseScore 2
  • Loading branch information
dmitrio95 committed Dec 27, 2019
2 parents b739f3e + 0d1262d commit 48235c4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libmscore/read206.cpp
Expand Up @@ -2064,6 +2064,16 @@ bool readChordRestProperties206(XmlReader& e, ChordRest* ch)
QPointF pt = e.readPoint();
ch->setOffset(pt * ch->spatium());
}
else if (ch->isRest() && tag == "Image"){
if (MScore::noImages)
e.skipCurrentElement();
else {
Image *image = new Image(ch->score());
image->setTrack(e.track());
image->read(e);
ch->add(image);
}
}
else if (!readDurationProperties206(e, ch))
return false;
return true;
Expand Down

0 comments on commit 48235c4

Please sign in to comment.