[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/03: qtgui: fix max/min hold traces when
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/03: qtgui: fix max/min hold traces when using half width in time sink |
Date: |
Sun, 29 Mar 2015 01:37:13 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 1c8d11ca6280c34d27bdf546318579cd5bbf4ba4
Author: Tom Rondeau <address@hidden>
Date: Sat Mar 28 18:20:58 2015 -0700
qtgui: fix max/min hold traces when using half width in time sink
---
gr-qtgui/lib/FrequencyDisplayPlot.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gr-qtgui/lib/FrequencyDisplayPlot.cc
b/gr-qtgui/lib/FrequencyDisplayPlot.cc
index 384ec8d..8005be1 100644
--- a/gr-qtgui/lib/FrequencyDisplayPlot.cc
+++ b/gr-qtgui/lib/FrequencyDisplayPlot.cc
@@ -395,10 +395,10 @@ FrequencyDisplayPlot::plotNewData(const
std::vector<double*> dataPoints,
for(int64_t point = 0; point < _npoints_in; point++) {
if(dataPoints[n][point] < d_min_fft_data[point]) {
- d_min_fft_data[point] = dataPoints[n][point];
+ d_min_fft_data[point] = dataPoints[n][point+_in_index];
}
if(dataPoints[n][point] > d_max_fft_data[point]) {
- d_max_fft_data[point] = dataPoints[n][point];
+ d_max_fft_data[point] = dataPoints[n][point+_in_index];
}
// Find overall top and bottom values in plot.