From 68abfbfe5e89315381d61324393016ed0e2d0ba9 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Wed, 10 Jun 2015 12:58:59 +0000 Subject: [PATCH] Bins/Pixel in echoplot should default to 1, not 0. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5570 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- echograph.cpp | 2 +- echoplot.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/echograph.cpp b/echograph.cpp index 96c013540..a4179cabd 100644 --- a/echograph.cpp +++ b/echograph.cpp @@ -30,7 +30,7 @@ EchoGraph::EchoGraph(QSettings * settings, QWidget *parent) : int n=m_settings->value("Smooth",0).toInt(); ui->echoPlot->m_smooth=n; ui->smoothSpinBox->setValue(n); - n=m_settings->value("EchoBPP",0).toInt(); + n=m_settings->value("EchoBPP",1).toInt(); ui->echoPlot->m_binsPerPixel=n; ui->binsPerPixelSpinBox->setValue(n); ui->echoPlot->m_blue=m_settings->value("BlueCurve",false).toBool(); diff --git a/echoplot.cpp b/echoplot.cpp index 5501bc6f4..0e225a5d3 100644 --- a/echoplot.cpp +++ b/echoplot.cpp @@ -19,6 +19,7 @@ EPlotter::EPlotter(QWidget *parent) : //EPlotter Constructor m_StartFreq = -200; m_fftBinWidth=12000.0/32768.0; + m_binsPerPixel=1; m_fSpan=1000.0; m_hdivs = HORZ_DIVS; m_Running = false;