Skip to content

Commit e5dff8e

Browse files
committed
Fix TimeParameter boundary conditions
1 parent 5f159cd commit e5dff8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/Processors/Editors/PopupTimeEditor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ class PLUGIN_API PopupTimeEditor : public Component,
109109
secondEditor.getText().getDoubleValue());
110110
int t1 = newTv->getTimeInMilliseconds();
111111
int t2 = p->getTimeValue()->getMaxTimeInMilliseconds();
112-
if (newTv->getTimeInMilliseconds() < p->getTimeValue()->getMaxTimeInMilliseconds()
113-
&& newTv->getTimeInMilliseconds() > p->getTimeValue()->getMinTimeInMilliseconds())
112+
if (newTv->getTimeInMilliseconds() <= p->getTimeValue()->getMaxTimeInMilliseconds()
113+
&& newTv->getTimeInMilliseconds() >= p->getTimeValue()->getMinTimeInMilliseconds())
114114
p->setNextValue (newTv->toString(), true);
115115
}
116116

0 commit comments

Comments
 (0)