Skip to content

Commit

Permalink
fix #44786: Copy/paste measure range between time signatures causes c…
Browse files Browse the repository at this point in the history
…orruption
  • Loading branch information
wschweer committed Jan 26, 2015
1 parent bc85c24 commit 9a705e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libmscore/paste.cpp
Expand Up @@ -408,7 +408,7 @@ bool Score::pasteStaff(XmlReader& e, Segment* dst, int dstStaff)

void Score::pasteChordRest(ChordRest* cr, int tick, const Interval& srcTranspose)
{
// qDebug("pasteChordRest %s at %d", cr->name(), tick);
// qDebug("pasteChordRest %s at %d, len %d/%d", cr->name(), tick, cr->duration().numerator(), cr->duration().denominator() );
if (cr->type() == Element::Type::CHORD)
transposeChord(static_cast<Chord*>(cr), srcTranspose);

Expand Down Expand Up @@ -505,6 +505,8 @@ void Score::pasteChordRest(ChordRest* cr, int tick, const Interval& srcTranspose
}
}
else {
if (cr->durationType().type() == TDuration::DurationType::V_MEASURE)
cr->setDurationType(TDuration(cr->duration()));
undoAddCR(cr, measure, tick);
}
}
Expand Down

0 comments on commit 9a705e1

Please sign in to comment.