From 70defb88ba3a62b0efd0fe2e256c368a039cd92f Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 19 Sep 2006 21:06:09 +0000 Subject: trying out IOhannes' bugfix 1549377 in Pd-extended svn path=/trunk/; revision=5971 --- packages/patches/TODO | 1 + .../fix_crash_on_sending_obj-g_text-0.39.2.patch | 33 ++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 packages/patches/fix_crash_on_sending_obj-g_text-0.39.2.patch (limited to 'packages') 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); -- cgit v1.2.1