Skip to content

Commit ade228e

Browse files
committed
Fix integer automation parameter bug
1 parent f7463e9 commit ade228e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Utility/PluginParameter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class PlugDataParameter final : public RangedAudioParameter {
4343
auto const range = getNormalisableRange();
4444
if(mode == Integer)
4545
{
46-
return range.end - range.start;
46+
return (range.end - range.start) + 1;
4747
}
4848

4949
return static_cast<int>((range.end - range.start) / std::numeric_limits<float>::epsilon()) + 1;

0 commit comments

Comments
 (0)