Skip to content

Set value dialog shows extra digit on models with small step size #8393

@extern-stat

Description

@extern-stat

System Information

Windows 10

LMMS Version(s)

Version 1.3.0-alpha.1.983+38efd2f (win32/x86_64, Qt 5.15.18, GCC 15.2.0)

Most Recent Working Version

No response

Bug Summary

Opening the set value dialog for a knob with a low step size (for example, the LFO Controller frequency knob) causes an extra zero to appear at the end, since the dialog shows one more decimal digit than the underlying model actually has. The value entered in the set value dialog gets rounded to the step size of the underlying model once submitted.

Expected Behaviour

The number of digits in the set value dialog should be the same as the step size of the underlying model.

Steps To Reproduce

  • Add an LFO controller in the controller rack
  • Double click on the LFO frequency knob

Logs

No response

Screenshots / Minimum Reproducible Project

bug.mp4

Please search the issue tracker for existing bug reports before submitting your own.

  • I have searched all existing issues and confirmed that this is not a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions