From 00273a554079e62a232c328c9c3f1ff680a63e7c Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Thu, 28 Feb 2013 21:22:56 +0000 Subject: [PATCH] Fix the red plot when bins/pixel > 1. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3024 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 2 +- widegraph.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 18dbb725d..ae894c0b0 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/widegraph.cpp b/widegraph.cpp index 8955299e5..0dbf10f18 100644 --- a/widegraph.cpp +++ b/widegraph.cpp @@ -87,6 +87,7 @@ void WideGraph::dataSink2(float s[], float red[], float df3, int ihsym, { static float splot[NSMAX]; static float swide[2048]; + static float rwide[2048]; int nbpp = ui->widePlot->binsPerPixel(); static int n=0; @@ -111,11 +112,14 @@ void WideGraph::dataSink2(float s[], float red[], float df3, int ihsym, int jz=1000.0/df3; for (int j=0; jwidePlot->draw(swide,red,i0); + ui->widePlot->draw(swide,rwide,i0); } }