aboutsummaryrefslogtreecommitdiff
path: root/imagegrid/imagegrid.c
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
commitbbf416fbd1a443b13d6285728a354fbeda3004ac (patch)
tree20884e6f6103da2622b416a0dffbc8d9d1aedbe0 /imagegrid/imagegrid.c
parent3c050000c6918b77a353583999e6e810aa675fda (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/pdvjtools/; revision=8902
Diffstat (limited to 'imagegrid/imagegrid.c')
-rw-r--r--imagegrid/imagegrid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/imagegrid/imagegrid.c b/imagegrid/imagegrid.c
index 8d1c213..d250b41 100644
--- a/imagegrid/imagegrid.c
+++ b/imagegrid/imagegrid.c
@@ -580,7 +580,8 @@ static void imagegrid_save(t_gobj *z, t_binbuf *b)
binbuf_addv(b, "ssiissiisss", gensym("#X"),gensym("obj"),
x->x_obj.te_xpix, x->x_obj.te_ypix,
- gensym("imagegrid"),x->x_name,x->x_num_fil,x->x_num_col,x->x_color_fons,x->x_color_marc,gensym(cadenaPathsInicials));
+ atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)),
+ x->x_name,x->x_num_fil,x->x_num_col,x->x_color_fons,x->x_color_marc,gensym(cadenaPathsInicials));
binbuf_addv(b, ";");
}