aboutsummaryrefslogtreecommitdiff
path: root/packages/patches
diff options
context:
space:
mode:
Diffstat (limited to 'packages/patches')
-rw-r--r--packages/patches/TODO1
-rw-r--r--packages/patches/fix_crash_on_sending_obj-g_text-0.39.2.patch33
2 files changed, 34 insertions, 0 deletions
diff --git a/packages/patches/TODO b/packages/patches/TODO
index 91410ea0..3fd0fc2f 100644
--- a/packages/patches/TODO
+++ b/packages/patches/TODO
@@ -6,6 +6,7 @@
Patches accepted into or obsoleted by 0.40
-----------------------------------
+- array_overflow_fix-0.39.2.patch
- bang_method_for_clip-0.40.pre.patch
- complete_version_defines-0.39.2.patch
- fftw_support-0.39-1.patch
diff --git a/packages/patches/fix_crash_on_sending_obj-g_text-0.39.2.patch b/packages/patches/fix_crash_on_sending_obj-g_text-0.39.2.patch
new file mode 100644
index 00000000..6952900a
--- /dev/null
+++ b/packages/patches/fix_crash_on_sending_obj-g_text-0.39.2.patch
@@ -0,0 +1,33 @@
+Index: g_text.c
+===================================================================
+RCS file: /cvsroot/pure-data/pd/src/g_text.c,v
+retrieving revision 1.13
+diff -u -r1.13 g_text.c
+--- g_text.c 11 Aug 2006 20:09:07 -0000 1.13
++++ g_text.c 30 Aug 2006 15:33:53 -0000
+@@ -145,8 +145,11 @@
+ canvas_objtext(gl, atom_getintarg(0, argc, argv),
+ atom_getintarg(1, argc, argv), 0, b);
+ }
+- else
+- {
++ else if(!glist_isvisible(gl)){
++ /* JMZ: not a good idea to go into interactive mode in a closed canvas... */
++ post("unable to create stub object in closed canvas!");
++ return;
++ } else {
+ t_binbuf *b = binbuf_new();
+ int xpix, ypix;
+ pd_vmess(&gl->gl_pd, gensym("editmode"), "i", 1);
+@@ -413,6 +416,11 @@
+ else
+ {
+ int xpix, ypix;
++ /* JMZ: not a good idea to go into interactive mode in a closed canvas... */
++ if(!glist_isvisible(gl)){
++ post("unable to create stub message in closed canvas!");
++ return;
++ }
+ pd_vmess(&gl->gl_pd, gensym("editmode"), "i", 1);
+ glist_noselect(gl);
+ glist_getnextxy(gl, &xpix, &ypix);