From f6a99facc38c7fe408462b80da7e1e5715ab5900 Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Sun, 8 Dec 2013 05:15:42 -0500
Subject: [PATCH] *made array gop windows hide their text by default (since
 they are not visible anyhow).

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

diff --git a/pd/src/g_array.c b/pd/src/g_array.c
index 27dcb492a..300530704 100644
--- a/pd/src/g_array.c
+++ b/pd/src/g_array.c
@@ -402,9 +402,11 @@ void glist_arraydialog(t_glist *parent, t_symbol *s, int argc, t_atom *argv)
     int flags = fflags;
     if (size < 1)
         size = 1;
-    if (otherflag == 0 || (!(gl = glist_findgraph(parent))))
+    if (otherflag == 0 || (!(gl = glist_findgraph(parent)))) {
         gl = glist_addglist(parent, &s_, 0, 1,
             (size > 1 ? size-1 : size), -1, xdraw+30, ydraw+30, xdraw+30+GLIST_DEFGRAPHWIDTH, ydraw+30+GLIST_DEFGRAPHHEIGHT);
+        gl->gl_hidetext = 1;
+    }
     a = graph_array(gl, sharptodollar(name), &s_float, size, flags);
     canvas_dirty(parent, 1);
 	//canvas_redraw(glist_getcanvas(parent));
@@ -1031,6 +1033,7 @@ int array_doclick(t_array *array, t_glist *glist, t_scalar *sc, t_array *ap,
 static void array_getrect(t_array *array, t_glist *glist,
     int *xp1, int *yp1, int *xp2, int *yp2)
 {
+    //fprintf(stderr,"array getrect\n");
     t_float x1 = 0x7fffffff, y1 = 0x7fffffff, x2 = -0x7fffffff, y2 = -0x7fffffff;
     t_canvas *elemtemplatecanvas;
     t_template *elemtemplate;
-- 
GitLab