Mercurial > MadButterfly
diff src/shape_text.c @ 196:c234ee745ceb
Start moving to mb_obj_t
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 09 Dec 2008 17:34:10 +0800 |
parents | 530bb7728546 |
children | 29e1b2bffe4c |
line wrap: on
line diff
--- a/src/shape_text.c Wed Nov 19 20:54:27 2008 +0800 +++ b/src/shape_text.c Tue Dec 09 17:34:10 2008 +0800 @@ -42,7 +42,7 @@ return NULL; memset(text, 0, sizeof(sh_text_t)); - text->shape.sh_type = SHT_TEXT; + MBO_TYPE(text) = MBO_TEXT; text->data = strdup(txt); if(text->data == NULL) { free(text);