aboutsummaryrefslogtreecommitdiff
path: root/src/cube_sphere.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2007-10-31 11:37:45 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2007-10-31 11:37:45 +0000
commit2407b8a61f848ad42957f73666e891b6af5f0e57 (patch)
treebe1fadbdebc5e7627f18ee3e10662e88728d0bdd /src/cube_sphere.c
parent2668f5a5067a8f7afa4f0ab7cbea9cada9038035 (diff)
query the objects real name instead of assuming that you already know it
svn path=/trunk/externals/iem/iemgui/; revision=8917
Diffstat (limited to 'src/cube_sphere.c')
-rw-r--r--src/cube_sphere.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cube_sphere.c b/src/cube_sphere.c
index ed38b7a..9c65984 100644
--- a/src/cube_sphere.c
+++ b/src/cube_sphere.c
@@ -261,7 +261,8 @@ static void cube_sphere_save(t_gobj *z, t_binbuf *b)
int i, j, c, n=x->x_n_src;
binbuf_addv(b, "ssiis", gensym("#X"),gensym("obj"),
- (t_int)x->x_gui.x_obj.te_xpix, (t_int)x->x_gui.x_obj.te_ypix, gensym("cube_sphere"));
+ (t_int)x->x_gui.x_obj.te_xpix, (t_int)x->x_gui.x_obj.te_ypix,
+ atom_getsymbol(binbuf_getvec(x->x_gui.x_obj.te_binbuf)));
if(x->x_null)
binbuf_addv(b, "iii", 0, x->x_radius, x->x_fontsize);
else