From f4dde817cbd222d0f94dff73f4fe60fd25dc32f1 Mon Sep 17 00:00:00 2001
From: Thibaut <thibaut.monseigne@inria.fr>
Date: Thu, 11 Jul 2019 16:07:05 +0200
Subject: [PATCH] Boxes: Oups forgot the debug trace

---
 .../src/box-algorithms/ovpCGrazMultiVisualization.cpp    | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/plugins/processing/simple-visualization/src/box-algorithms/ovpCGrazMultiVisualization.cpp b/plugins/processing/simple-visualization/src/box-algorithms/ovpCGrazMultiVisualization.cpp
index 19420b5c9..70ee61068 100644
--- a/plugins/processing/simple-visualization/src/box-algorithms/ovpCGrazMultiVisualization.cpp
+++ b/plugins/processing/simple-visualization/src/box-algorithms/ovpCGrazMultiVisualization.cpp
@@ -137,7 +137,7 @@ bool CGrazMultiVisualization::initialize()
 	{
 		this->getLogManager() << LogLevel_Warning << "Unable to connect to AS's TCP Tagging plugin, stimuli wont be forwarded.\n";
 	}
-	this->getLogManager() << LogLevel_Warning << infos().c_str() << "\n";
+	//this->getLogManager() << LogLevel_Warning << infos().c_str() << "\n";
 	return true;
 }
 //---------------------------------------------------------------------------------------------------
@@ -297,11 +297,10 @@ void CGrazMultiVisualization::drawModality()
 //---------------------------------------------------------------------------------------------------
 void CGrazMultiVisualization::drawBar()
 {
-	if (m_feedbackMode == 0 || m_feedbackMode == 1)									// Draw Positive or Best Only
+	if ((m_feedbackMode == 0 && m_modality == m_vote) || m_feedbackMode == 1)					// Draw Positive or Best Only
 	{
-		const int pos = m_feedbackMode == 0 ? m_modality : m_vote;					// If Positive we draw only the modality expected, if Best we draw the vote
-		const gint x = (pos + 1) * m_modalityX,										// Get the pos X of the bar
-				   h = gint(m_barScales[pos] < 0 ? 0 : m_barScales[pos] * m_barH);	// Get the height of the bar
+		const gint x = (m_vote + 1) * m_modalityX,											// Get the pos X of the bar
+				   h = gint(m_barScales[m_vote] < 0 ? 0 : m_barScales[m_vote] * m_barH);	// Get the height of the bar
 		gdk_pixbuf_render_to_drawable(m_bar, m_widget->window, nullptr, 0, m_barH - h, x - m_barW / 2, m_modalityY - h, m_barW, h, GDK_RGB_DITHER_NONE, 0, 0);
 	}
 	else if (m_feedbackMode == 2)													// Draw All
-- 
GitLab