diff src/shape_path.c @ 202:75ec0124202a

Commit merged between 200 and 201
author wycc@wycc-desktop
date Tue, 09 Dec 2008 23:34:05 +0800
parents bcad1ccdf45c c234ee745ceb
children 29e1b2bffe4c
line wrap: on
line diff
--- a/src/shape_path.c	Sun Dec 07 18:00:06 2008 +0800
+++ b/src/shape_path.c	Tue Dec 09 23:34:05 2008 +0800
@@ -682,7 +682,7 @@
     path = (sh_path_t *)malloc(sizeof(sh_path_t));
     /*! \todo Remove this memset()? */
     memset(&path->shape, 0, sizeof(shape_t));
-    path->shape.sh_type = SHT_PATH;
+    MBO_TYPE(path) = MBO_PATH;
     path->cmd_len = cmd_cnt;
     path->arg_len = arg_cnt;
     path->fix_arg_len = fix_arg_cnt;
@@ -722,7 +722,7 @@
     path = (sh_path_t *)malloc(sizeof(sh_path_t));
     /*! \todo Remove this memset()? */
     memset(&path->shape, 0, sizeof(shape_t));
-    path->shape.sh_type = SHT_PATH;
+    MBO_TYPE(path) = MBO_PATH;
     path->cmd_len = strlen(commands);
     path->arg_len = arg_cnt;
     path->fix_arg_len = fix_arg_cnt;