Mode switch to signal generator (GUI stubs only)

This commit is contained in:
Jan Käberich 2020-09-11 23:07:15 +02:00
parent 6e82bc42f5
commit f4a6b24a8e
19 changed files with 1132 additions and 311 deletions

View file

@ -396,7 +396,7 @@ bool TraceBodePlot::supported(Trace *t, TraceBodePlot::YAxisType type)
void TraceBodePlot::updateXAxis()
{
if(XAxis.autorange) {
if(XAxis.autorange && sweep_fmax-sweep_fmin > 0) {
QList<double> tickList;
for(double tick = sweep_fmin;tick <= sweep_fmax;tick+= (sweep_fmax-sweep_fmin)/10) {
tickList.append(tick);