From 665e5e4ff584237c1e3aac97d59995ec8ddda817 Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Thu, 5 Feb 2009 03:28:27 +0000 Subject: 0.42-4. Fixes "send" template bug, "gfxstub" bug, 2 pd~ bugs svn path=/trunk/; revision=10737 --- pd/src/g_text.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pd/src/g_text.c') diff --git a/pd/src/g_text.c b/pd/src/g_text.c index b8680e87..f927bf38 100644 --- a/pd/src/g_text.c +++ b/pd/src/g_text.c @@ -131,6 +131,7 @@ static void canvas_objtext(t_glist *gl, int xpix, int ypix, int selected, canvas_unsetcurrent((t_canvas *)gl); } +extern int sys_noautopatch; /* utility routine to figure out where to put a new text box from menu and whether to connect to it automatically */ static void canvas_howputnew(t_canvas *x, int *connectp, int *xpixp, int *ypixp, @@ -138,7 +139,7 @@ static void canvas_howputnew(t_canvas *x, int *connectp, int *xpixp, int *ypixp, { int xpix, ypix, indx = 0, nobj = 0, n2, x1, x2, y1, y2; int connectme = (x->gl_editor->e_selection && - !x->gl_editor->e_selection->sel_next); + !x->gl_editor->e_selection->sel_next && !sys_noautopatch); if (connectme) { t_gobj *g, *selected = x->gl_editor->e_selection->sel_what; -- cgit v1.2.1