fix build and compiler warning
This commit is contained in:
parent
c68b6a46df
commit
f681fe5e8e
2 changed files with 6 additions and 2 deletions
|
@ -262,6 +262,7 @@ Fraction RealizedHarmony::getActualDuration(HDuration durationType) const
|
|||
return _harmony->ticksTilNext(true);
|
||||
break;
|
||||
case HDuration::SEGMENT_DURATION:
|
||||
{
|
||||
Segment* s = _harmony->getParentSeg();
|
||||
if (s) {
|
||||
// TODO - use duration of chordrest on this segment / track
|
||||
|
@ -275,6 +276,7 @@ Fraction RealizedHarmony::getActualDuration(HDuration durationType) const
|
|||
} else {
|
||||
return Fraction(0, 1);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return Fraction(0, 1);
|
||||
|
|
|
@ -130,6 +130,7 @@ void TimeDialog::save()
|
|||
|
||||
void TimeDialog::zChanged(int val)
|
||||
{
|
||||
Q_UNUSED(val);
|
||||
Fraction sig(zNominal->value(), denominator());
|
||||
groups->setSig(sig, Groups::endings(sig), zText->text(), nText->text());
|
||||
}
|
||||
|
@ -138,8 +139,9 @@ void TimeDialog::zChanged(int val)
|
|||
// nChanged
|
||||
//---------------------------------------------------------
|
||||
|
||||
void TimeDialog::nChanged(int /*val*/)
|
||||
void TimeDialog::nChanged(int val)
|
||||
{
|
||||
Q_UNUSED(val);
|
||||
Fraction sig(zNominal->value(), denominator());
|
||||
groups->setSig(sig, Groups::endings(sig), zText->text(), nText->text());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue