From 051013e051781ebea26bd08b3c6fe8d1e0b0d2a1 Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Wed, 20 Apr 2011 13:28:00 -0400
Subject: [PATCH] Pd-0.42.5-extended-l2ork-dev-20110420.tar.bz2

---
 src/g_text.c | 7 +++++--
 src/m_pd.h   | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/g_text.c b/src/g_text.c
index c29fba941..4c1f2ebcf 100644
--- a/src/g_text.c
+++ b/src/g_text.c
@@ -146,16 +146,19 @@ void canvas_howputnew(t_canvas *x, int *connectp, int *xpixp, int *ypixp,
     int *indexp, int *totalp)
 {
     int xpix, ypix, indx = 0, nobj = 0, n2, x1, x2, y1, y2;
-	int connectme = 0;
 	t_gobj *selected;
 
+	/*
+	int connectme = 0;
 	if (x->gl_editor->e_selection &&
         !x->gl_editor->e_selection->sel_next &&
 		!sys_noautopatch) {
 			selected = x->gl_editor->e_selection->sel_what;
 			t_object *ob = pd_checkobject(&selected->g_pd);
     		connectme = (obj_noutlets(ob) ? 1 : 0);
-	}
+	}*/
+    int connectme = (x->gl_editor->e_selection &&
+        !x->gl_editor->e_selection->sel_next && !sys_noautopatch);
     if (connectme)
     {
         t_gobj *g, *selected = x->gl_editor->e_selection->sel_what;
diff --git a/src/m_pd.h b/src/m_pd.h
index f48f6ca81..0fc9b3ff2 100644
--- a/src/m_pd.h
+++ b/src/m_pd.h
@@ -11,7 +11,7 @@ extern "C" {
 #define PD_MAJOR_VERSION 0
 #define PD_MINOR_VERSION 42
 #define PD_BUGFIX_VERSION 5
-#define PD_TEST_VERSION "extended-l2ork-20110419"
+#define PD_TEST_VERSION "extended-l2ork-20110420"
 
 /* old name for "MSW" flag -- we have to take it for the sake of many old
 "nmakefiles" for externs, which will define NT and not MSW */
-- 
GitLab