aboutsummaryrefslogtreecommitdiff
path: root/pd/src/g_text.c
diff options
context:
space:
mode:
authorMiller Puckette <millerpuckette@users.sourceforge.net>2009-02-05 03:28:27 +0000
committerMiller Puckette <millerpuckette@users.sourceforge.net>2009-02-05 03:28:27 +0000
commit665e5e4ff584237c1e3aac97d59995ec8ddda817 (patch)
tree8dddd344a301b359f4135fc97c3e3b6c7cc2ff77 /pd/src/g_text.c
parentbe515e5f170a43d88b28b8dad6c6fe7064359df6 (diff)
0.42-4. Fixes "send" template bug, "gfxstub" bug, 2 pd~ bugs
svn path=/trunk/; revision=10737
Diffstat (limited to 'pd/src/g_text.c')
-rw-r--r--pd/src/g_text.c3
1 files changed, 2 insertions, 1 deletions
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;