aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-10-29 18:58:45 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-10-29 18:58:45 +0000
commitf17507401e4e6836e0d4810b62ec1fe1851bc156 (patch)
tree47d77cf15955ace3e9368676069ed966799341ad /modules
parent1a5344ef0aea7f9116128b7f8e33a588964d1f4e (diff)
Following this thread:
http://lists.puredata.info/pipermail/pd-dev/2007-10/009797.html I have changed the save functions so that they will save the name of the object that it was actually instantiated with. This allows objects with savefns to work properly with namespaces. This is a fix for this bug: http://sourceforge.net/tracker/index.php?&aid=1818219&group_id=55736&atid=478070 svn path=/trunk/externals/pidip/; revision=8902
Diffstat (limited to 'modules')
-rw-r--r--modules/pdp_colorgrid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/pdp_colorgrid.c b/modules/pdp_colorgrid.c
index fb2c0c3..bf73ed7 100644
--- a/modules/pdp_colorgrid.c
+++ b/modules/pdp_colorgrid.c
@@ -415,7 +415,8 @@ static void pdp_colorgrid_save(t_gobj *z, t_binbuf *b)
// post( "saving pdp_colorgrid : %s", x->x_name->s_name );
binbuf_addv(b, "ssiissiffiffiffiiff", gensym("#X"),gensym("obj"),
(int)x->x_obj.te_xpix, (int)x->x_obj.te_ypix,
- gensym("pdp_colorgrid"), x->x_name, x->x_width, x->x_min,
+ atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)),
+ x->x_name, x->x_width, x->x_min,
x->x_max, x->x_height,
x->y_min, x->y_max,
x->x_pdp_colorgrid, x->x_xstep,