Skip to content

Commit

Permalink
fix #95076: Crash after a copy-paste chord symbols and Undo
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Jan 22, 2016
1 parent 121e330 commit f2869d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/paste.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ void Score::pasteSymbols(XmlReader& e, ChordRest* dst)
}
else if (!harmSegm || harmSegm->tick() > destTick) {
Measure* meas = tick2measure(destTick);
harmSegm = meas ? meas->getSegment(Segment::Type::ChordRest, destTick) : nullptr;
harmSegm = meas ? meas->undoGetSegment(Segment::Type::ChordRest, destTick) : nullptr;
}
if (destTrack >= maxTrack || harmSegm == nullptr) {
qDebug("PasteSymbols: no track or segment for %s", tag.toUtf8().data());
Expand Down

0 comments on commit f2869d1

Please sign in to comment.