aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN.N. <electrickery@users.sourceforge.net>2015-06-09 17:20:44 +0000
committerN.N. <electrickery@users.sourceforge.net>2015-06-09 17:20:44 +0000
commit469b4f8e22d7bd59674baf7bf2c0d5570b36318e (patch)
tree0171916d88a92af09dff37885d6ac3f98ea9109b
parentd20d460faa23f9fda7dd531d6af5b6a2e108b1fe (diff)
cyclone/comment.c: applied patch as described in bug #215, and it appears to work. Updated the help-patch too.
svn path=/trunk/externals/miXed/; revision=17480
-rw-r--r--cyclone/hammer/comment.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cyclone/hammer/comment.c b/cyclone/hammer/comment.c
index 0be726f..c534764 100644
--- a/cyclone/hammer/comment.c
+++ b/cyclone/hammer/comment.c
@@ -66,6 +66,7 @@ typedef struct _comment
int x_selend;
int x_active;
int x_ready;
+ t_symbol *x_selector;
} t_comment;
static t_class *comment_class;
@@ -454,8 +455,7 @@ static void comment_save(t_gobj *z, t_binbuf *b)
t_text *t = (t_text *)x;
comment_validate(x, 0);
binbuf_addv(b, "ssiisiissiiii", gensym("#X"), gensym("obj"),
- (int)t->te_xpix, (int)t->te_ypix,
- gensym("comment"),
+ (int)t->te_xpix, (int)t->te_ypix, x->x_selector,
x->x_pixwidth, x->x_fontsize, x->x_fontfamily,
(x->x_encoding ? x->x_encoding : gensym("?")),
x->x_fontprops,
@@ -590,7 +590,7 @@ static void comment_list(t_comment *x, t_symbol *s, int ac, t_atom *av)
t_text *newt, *oldt = (t_text *)x;
t_binbuf *bb = binbuf_new();
int ac = binbuf_getnatom(x->x_binbuf);
- binbuf_addv(bb, "siissiiii", gensym("comment"), x->x_pixwidth,
+ binbuf_addv(bb, "siissiiii", x->x_selector, x->x_pixwidth,
x->x_fontsize, x->x_fontfamily,
(x->x_encoding ? x->x_encoding : gensym("?")),
x->x_fontprops,
@@ -696,6 +696,7 @@ static void *comment_new(t_symbol *s, int ac, t_atom *av)
x->x_red = 0;
x->x_green = 0;
x->x_blue = 0;
+ x->x_selector = s;
if (ac && av->a_type == A_FLOAT)
{