From 1832089d6d1e93dd579fa198e1b3f480797bd0af Mon Sep 17 00:00:00 2001
From: Mathieu L Bouchard <matju@artengine.ca>
Date: Sun, 10 Aug 2014 21:01:44 -0400
Subject: [PATCH] fix bug in 8th big refactoring

---
 pd/src/g_bang.c   | 2 +-
 pd/src/g_slider.c | 2 +-
 pd/src/g_toggle.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pd/src/g_bang.c b/pd/src/g_bang.c
index bb7e8af1d..e9757a866 100644
--- a/pd/src/g_bang.c
+++ b/pd/src/g_bang.c
@@ -138,7 +138,7 @@ static void bng__clickhook(t_scalehandle *sh, t_floatarg f,
             scalehandle_unclick_scale(sh);
         }
     }
-    else iemgui__clickhook3(sh,newstate);
+    iemgui__clickhook3(sh,newstate);
 }
 
 static void bng__motionhook(t_scalehandle *sh,
diff --git a/pd/src/g_slider.c b/pd/src/g_slider.c
index aea0eb354..c35780bea 100644
--- a/pd/src/g_slider.c
+++ b/pd/src/g_slider.c
@@ -187,7 +187,7 @@ static void slider__clickhook(t_scalehandle *sh, t_floatarg f,
             scalehandle_unclick_scale(sh);
         }
     }
-    else iemgui__clickhook3(sh,newstate);
+    iemgui__clickhook3(sh,newstate);
 }
 
 static void hslider__motionhook(t_scalehandle *sh, t_floatarg f1, t_floatarg f2)
diff --git a/pd/src/g_toggle.c b/pd/src/g_toggle.c
index 9f677a76b..19f5074f5 100644
--- a/pd/src/g_toggle.c
+++ b/pd/src/g_toggle.c
@@ -141,7 +141,7 @@ static void toggle__clickhook(t_scalehandle *sh, t_floatarg f,
             scalehandle_unclick_scale(sh);
         }
     }
-    else iemgui__clickhook3(sh,newstate);
+    iemgui__clickhook3(sh,newstate);
 }
 
 static void toggle__motionhook(t_scalehandle *sh, t_floatarg f1, t_floatarg f2)
-- 
GitLab