SPARK-2309 crash in synth editor when editing (typing) ticks
This commit is contained in:
1 parent
0051d7f9d8
commit
a80b650dcc
1 file changed
+1
-1
@@ -66,7 +66,7 @@ namespace mbts.ui.controls {
|
||||
public ICollectionView TickUnitPresetsView { get; }
|
||||
|
||||
static IEnumerable<double> _get_tick_unit_presets(double tick_base) {
|
||||
if (DoubleHelper.IsNaNOrInfinity(tick_base))
|
||||
if (DoubleHelper.IsNaNOrInfinityOr(tick_base, 0) || tick_base < 0)
|
||||
return Enumerable.Empty<double>();
|
||||
double reduced_base = MathUtils.factor_out(tick_base, 10, out int base_log10);
|
||||
return reduced_base == 1 ?
|
||||
|
||||
Reference in new issue
Block a user