From e9f91800880dba3e54052f9f1bf337f98a7ef697 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sat, 3 Aug 2013 01:26:54 +0000 Subject: [PATCH] Correct an error in aligning "Cumulative" when "Start freq" > 0. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3522 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 2 +- plotter.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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