Skip to content
Permalink
Browse files

fix #202271: Copy-paste sextuplets/octuplets and their removal leads …

…to corruption
  • Loading branch information...
lasconic committed Jun 5, 2017
1 parent 13b0358 commit 7609881309c4cf33424ee62148b0655e3c43fc8b
Showing with 2 additions and 2 deletions.
  1. +1 −1 libmscore/tuplet.cpp
  2. +1 −1 mscore/tupletdialog.cpp
@@ -688,7 +688,7 @@ void Tuplet::read(XmlReader& e)
else if (!DurationElement::readProperties(e))
e.unknown();
}
Fraction f(_ratio.reduced().denominator(), _baseLen.fraction().denominator());
Fraction f(_ratio.denominator(), _baseLen.fraction().denominator());
setDuration(f);
if (bl != -1) { // obsolete
TDuration d;
@@ -102,7 +102,7 @@ Tuplet* MuseScore::tupletDialog()
tuplet->setTrack(cr->track());
tuplet->setTick(cr->tick());
td.setupTuplet(tuplet);
// tuplet->setRatio(tuplet->ratio().reduced());
tuplet->setRatio(tuplet->ratio().reduced());
Fraction f1(cr->duration());
tuplet->setDuration(f1);
Fraction f = f1 * tuplet->ratio();

0 comments on commit 7609881

Please sign in to comment.
You can’t perform that action at this time.