Skip to content

Commit

Permalink
fix #287908: Dynamics: velocity change spinner not working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmcclinch committed Apr 19, 2019
1 parent 27c146f commit 1f5d972
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mscore/inspector/inspectorDynamic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@ void InspectorDynamic::valueChanged(int idx, bool b)
{
InspectorTextBase::valueChanged(idx, b);

Pid pid = iList[idx].t;
// Update min and max for velocity change input
int velocity = d.velocity->value();
d.changeInVelocity->setMinimum(1 - velocity);
d.changeInVelocity->setMaximum(127 - velocity);
if (pid == Pid::VELOCITY) {
int velocity = d.velocity->value();
d.changeInVelocity->setMinimum(1 - velocity);
d.changeInVelocity->setMaximum(127 - velocity);
}
}
} // namespace Ms

0 comments on commit 1f5d972

Please sign in to comment.