From 820b7c447d85c11efe1e73c3251d3c5c1de51482 Mon Sep 17 00:00:00 2001
From: jvoigts <jvoigts@mit.edu>
Date: Tue, 29 Mar 2016 16:04:20 -0400
Subject: [PATCH] removed redundant repaint call

---
 Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp b/Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp
index bbb0c1b5a..1958a7f00 100644
--- a/Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp
+++ b/Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp
@@ -814,7 +814,7 @@ void LfpDisplayCanvas::sliderValueChanged(Slider* sl)
     histogramParameterB = sl->getValue();
     
     fullredraw=true;
-    repaint();
+    //repaint();
     refresh();
 
 }
@@ -1665,7 +1665,7 @@ void LfpDisplay::refresh()
             if (canvas->fullredraw)
             {
                 channels[i]->fullredraw = true;
-                //channels[i]->repaint(); // old paint method
+                
                 channels[i]->pxPaint();
                 channelInfo[i]->repaint();
                 
@@ -1691,7 +1691,7 @@ void LfpDisplay::refresh()
     {
         repaint(0,topBorder,getWidth(),bottomBorder-topBorder);
     }else{
-        repaint(fillfrom, topBorder, (fillto-fillfrom)+1, bottomBorder-topBorder);
+        //repaint(fillfrom, topBorder, (fillto-fillfrom)+1, bottomBorder-topBorder); // doesntb seem to be needed and results in duplicate repaint calls
     }
     
     canvas->fullredraw = false;
-- 
GitLab