Mercurial > MadButterfly
diff nodejs/shapes.cc @ 689:a05a4a27ff46
Fix bug of losting rdman in xnjsmb_sh_stext_set_style
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sat, 07 Aug 2010 22:33:02 +0800 |
parents | cadebc13be2f |
children | 86c6ebf1de25 |
line wrap: on
line diff
--- a/nodejs/shapes.cc Sat Aug 07 22:28:17 2010 +0800 +++ b/nodejs/shapes.cc Sat Aug 07 22:33:02 2010 +0800 @@ -19,11 +19,14 @@ * @{ */ static void -xnjsmb_sh_stext_set_style(shape_t *sh, Handle<Value> blks, const char **err) { +xnjsmb_sh_stext_set_style(shape_t *sh, Handle<Object> self, + Handle<Value> blks, const char **err) { Array *blksobj; Array *blkobj; mb_style_blk_t *mb_blks; int nblks; + Handle<Object> rt; + redraw_man_t *rdman; int r; int i; @@ -43,6 +46,13 @@ return; } + /* + * Mark changed. + */ + rt = GET(self, "mbrt")->ToObject(); + ASSERT(rt != NULL); + rdman = xnjsmb_rt_rdman(rt); + if(sh_get_coord(sh)) rdman_shape_changed(rdman, sh);