From 0bf7b13e2a8cc01ad12460f0e86fd2641891edc4 Mon Sep 17 00:00:00 2001 From: Roberto Giaconia Date: Thu, 29 Dec 2016 22:39:54 +0100 Subject: [PATCH] Changes noncyclic smoothing behaviour (#3137) --- src/gui/widgets/Graph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/widgets/Graph.cpp b/src/gui/widgets/Graph.cpp index 7d65415f2b1..d1e6a99ffa5 100644 --- a/src/gui/widgets/Graph.cpp +++ b/src/gui/widgets/Graph.cpp @@ -624,12 +624,12 @@ void graphModel::smoothNonCyclic() QVector temp = m_samples; // Smoothing - m_samples[0] = ( ( temp[0] * 3 ) + temp[1] ) * 0.25f; + //m_samples[0] = ( ( temp[0] * 3 ) + temp[1] ) * 0.25f; for ( int i=1; i < ( length()-1 ); i++ ) { m_samples[i] = ( temp[i-1] + ( temp[i] * 2 ) + temp[i+1] ) * 0.25f; } - m_samples[length()-1] = ( temp[length()-2] + ( temp[length()-1] * 3 ) ) * 0.25f; + //m_samples[length()-1] = ( temp[length()-2] + ( temp[length()-1] * 3 ) ) * 0.25f; emit samplesChanged(0, length()-1); }