Bugfix: prevent crash on empty input

This commit is contained in:
Jan Käberich 2020-11-15 00:21:09 +01:00
parent 3055564a27
commit 4deaddf5d3
4 changed files with 27 additions and 27 deletions

View file

@ -499,11 +499,11 @@ SIUnitEdit *TraceMarker::getSettingsEditor()
case Type::Noise:
case Type::PhaseNoise:
default:
return new SIUnitEdit("Hz", " kMG");
return new SIUnitEdit("Hz", " kMG", 6);
case Type::Lowpass:
case Type::Highpass:
case Type::PeakTable:
return new SIUnitEdit("db", " ");
return new SIUnitEdit("db", " ", 3);
case Type::TOI:
return nullptr;
}