From ff6af2078d612bb00e96118c5fec2406d5262fff Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Fri, 30 Oct 2015 22:44:51 -0400
Subject: [PATCH] remove another scrollbar_update-- can't figure out what it's
 doing there

---
 pd/src/g_editor.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c
index 2edbfe827..9a08d364c 100644
--- a/pd/src/g_editor.c
+++ b/pd/src/g_editor.c
@@ -2592,7 +2592,11 @@ void canvas_vis(t_canvas *x, t_floatarg f)
                 canvas_destroy_editor(x);
             return;
         }
-        scrollbar_update(x);
+        /* can't imagine why we're updating the scrollbar on a canvas
+           that's about to be unvis'd. Anyhow, if there happens to be some
+           weird scrollbar bug try uncommenting the following line (and please
+           documented why this has to be here if that's the case). */
+        //scrollbar_update(x);
         glist_noselect(x);
         if (glist_isvisible(x))
             canvas_map(x, 0);
-- 
GitLab