Skip to content

Commit

Permalink
fix #41711: crash on load of score with one-plet
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Dec 18, 2014
1 parent 86ec8d9 commit a7eb8d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libmscore/tuplet.cpp
Expand Up @@ -36,6 +36,7 @@ Tuplet::Tuplet(Score* s)
setFlags(ElementFlag::MOVABLE | ElementFlag::SELECTABLE);
_numberType = Tuplet::NumberType::SHOW_NUMBER;
_bracketType = Tuplet::BracketType::AUTO_BRACKET;
_ratio = Fraction(1, 1);
_number = 0;
_hasBracket = false;
_isUp = true;
Expand Down Expand Up @@ -925,7 +926,7 @@ QVariant Tuplet::propertyDefault(P_ID id) const
return int(Tuplet::BracketType::AUTO_BRACKET);
case P_ID::NORMAL_NOTES:
case P_ID::ACTUAL_NOTES:
return 1;
return 0;
case P_ID::P1:
case P_ID::P2:
return QPointF();
Expand Down

0 comments on commit a7eb8d8

Please sign in to comment.