diff tools/mb_c_source.m4 @ 113:cf8ccf06e397

Create a new coord_t as root_coord in <svg>_new()
author Thinker K.F. Li <thinker@branda.to>
date Sun, 14 Sep 2008 01:04:40 +0800
parents 565b55508c8d
children 3a4d6179e6a9
line wrap: on
line diff
--- a/tools/mb_c_source.m4	Sun Sep 14 01:03:23 2008 +0800
+++ b/tools/mb_c_source.m4	Sun Sep 14 01:04:40 2008 +0800
@@ -275,7 +275,7 @@
     obj = ($1_t *)malloc(sizeof($1_t));
     if(obj == NULL) return NULL;
 ]SETUP_VARS
-    obj->root_coord = rdman->root_coord;
+    obj->root_coord = rdman_coord_new(rdman, rdman->root_coord);
 $2
 [    return obj;
 }