diff --git a/src/client/spark/view/Controls/TickFactorsPicker/TickFactorsPicker.xaml.cs b/src/client/spark/view/Controls/TickFactorsPicker/TickFactorsPicker.xaml.cs index 161e87df7..1121d49f2 100644 --- a/src/client/spark/view/Controls/TickFactorsPicker/TickFactorsPicker.xaml.cs +++ b/src/client/spark/view/Controls/TickFactorsPicker/TickFactorsPicker.xaml.cs @@ -66,7 +66,7 @@ namespace mbts.ui.controls { public ICollectionView TickUnitPresetsView { get; } static IEnumerable _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 reduced_base = MathUtils.factor_out(tick_base, 10, out int base_log10); return reduced_base == 1 ?