diff --git a/vstgui/standalone/examples/mandelbrot/source/modelbinding.h b/vstgui/standalone/examples/mandelbrot/source/modelbinding.h index d8ab59119..b50cd6f46 100644 --- a/vstgui/standalone/examples/mandelbrot/source/modelbinding.h +++ b/vstgui/standalone/examples/mandelbrot/source/modelbinding.h @@ -62,6 +62,8 @@ struct ModelBinding : VSTGUI::Standalone::UIDesc::IModelBinding, if (&value == maxIterations.get ()) { auto step = Value::currentStepValue (*maxIterations.get ()); + if (step < 1) + step = 1; if (step != IStepValue::InvalidStep) model->setIterations (step); return;