Skip to content

Commit

Permalink
Convert to txet correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
FigBug committed Mar 1, 2024
1 parent a9b3421 commit 82718fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gin_plugin/plugin/gin_parameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ int Parameter::getNumSteps() const
juce::String Parameter::getText (float val, int /*maximumStringLength*/) const
{
if (textFunction)
return textFunction (*this, range.convertFrom0to1 (val));
return textFunction (*this, range.snapToLegalValue (range.convertFrom0to1 (val)));

auto uv = range.snapToLegalValue (range.convertFrom0to1 (val));

Expand Down

0 comments on commit 82718fb

Please sign in to comment.