Mercurial > MadButterfly
diff nodejs/paints.cc @ 576:5a68e2bcea17
Set font styles for stext in Javascript
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 11 Jun 2010 01:21:10 +0800 |
parents | 49e79253b6d3 |
children | cc39cf3f623c |
line wrap: on
line diff
--- a/nodejs/paints.cc Thu Jun 10 09:36:41 2010 +0800 +++ b/nodejs/paints.cc Fri Jun 11 01:21:10 2010 +0800 @@ -42,7 +42,8 @@ rdman_paint_fill(rdman, paint, sh); - rdman_shape_changed(rdman, sh); + if(sh_get_coord(sh)) + rdman_shape_changed(rdman, sh); return Null(); } @@ -77,7 +78,8 @@ rdman_paint_stroke(rdman, paint, sh); - rdman_shape_changed(rdman, sh); + if(sh_get_coord(sh)) + rdman_shape_changed(rdman, sh); return Null(); }