diff --git a/mainwindow.cpp b/mainwindow.cpp index 908ea1181..11eae45d3 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,4 +1,4 @@ -//-------------------------------------------------------------- MainWindow +//--------------------------------------------------------------- MainWindow #include "mainwindow.h" #include "ui_mainwindow.h" #include "devsetup.h" diff --git a/plotter.cpp b/plotter.cpp index 537382601..35ebe4a22 100644 --- a/plotter.cpp +++ b/plotter.cpp @@ -85,7 +85,7 @@ void CPlotter::paintEvent(QPaintEvent *) // paintEvent() void CPlotter::draw(float swide[]) //draw() { - int j,y2; + int j,j0,y2; float y; double gain = pow(10.0,0.05*(m_plotGain+7)); @@ -100,7 +100,7 @@ void CPlotter::draw(float swide[]) //draw() QPoint LineBuf[MAX_SCREENSIZE]; j=0; - + j0=int(m_startFreq/m_fftBinWidth + 0.5); int iz=XfromFreq(5000.0); m_fMax=FreqfromX(iz); for(int i=0; i