aboutsummaryrefslogtreecommitdiff
path: root/gui/image.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
commit7678586aa3cef8591249fe4369f942ecb342300d (patch)
tree0fce3c2789633d7cac994b3d1df88a2efa13ecbd /gui/image.c
parente53a682a142125977f923e7d5dba28226bb2a5e8 (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/ggee/; revision=8902
Diffstat (limited to 'gui/image.c')
-rw-r--r--gui/image.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gui/image.c b/gui/image.c
index 5d9a5ca..ae65284 100644
--- a/gui/image.c
+++ b/gui/image.c
@@ -138,9 +138,10 @@ static void image_vis(t_gobj *z, t_glist *glist, int vis)
static void image_save(t_gobj *z, t_binbuf *b)
{
t_image *x = (t_image *)z;
- binbuf_addv(b, "ssiiss", gensym("#X"),gensym("obj"),
- x->x_obj.te_xpix, x->x_obj.te_ypix,
- gensym("image"),x->x_fname);
+ binbuf_addv(b, "ssiiss", gensym("#X"), gensym("obj"),
+ x->x_obj.te_xpix, x->x_obj.te_ypix,
+ atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)),
+ x->x_fname);
binbuf_addv(b, ";");
}