musescore/MuseScore — pull request #1214 by MarcSabatella (2014-08-24 16:02:35+00:00)
Title: fix #30661: last note of tuplet shortened on paste

The issue I am fixing is:

http://musescore.org/en/node/30661

The issue was introduced with the following commit:

https://github.com/musescore/MuseScore/commit/107bbc9f2225cc76ff506a2c3225f3a0a8ee850d

which was created to fix the following issue:

http://musescore.org/en/node/11889

I have verified that my fix here does in fact fix the current issue 30661 while still fixing 11889 with the given steps (both the original and the ones in comment #2. What I am less certain of is whether there might remain some cases where problems might still remain. But I think not. If I'm not msitaken, actualTicks() and durationTicks() differ only for tuplets. And since we don't allow copying of partial tuplets, the only way for this difference to matter is if the last selected note is the *last* chordrest of a tuplet. And as best as I can think right now, preserving that last note of the tuplet should always make sense.