diff src/shape_text.c @ 104:98c83441d7d6

-
author Thinker K.F. Li <thinker@branda.to>
date Thu, 11 Sep 2008 09:14:58 +0800
parents dd813dcc232c
children b90abd31a281
line wrap: on
line diff
--- a/src/shape_text.c	Wed Sep 10 13:44:07 2008 +0800
+++ b/src/shape_text.c	Thu Sep 11 09:14:58 2008 +0800
@@ -6,6 +6,7 @@
 #include "mb_types.h"
 #include "shapes.h"
 
+#define ASSERT(x)
 #define OK 0
 #define ERR -1
 
@@ -119,9 +120,7 @@
     y = text->y;
     coord_trans_pos(shape->coord, &x, &y);
     r = get_extents(text, &extents);
-    if(r != OK)
-	/*! \todo announce error. change return type? */
-	return;
+    ASSERT(r == OK);
 
     text->d_x = x;
     text->d_y = y;
@@ -134,6 +133,7 @@
     poses[1][0] = poses[0][0] + extents.width + 10 + shape->stroke_width;
     poses[1][1] = poses[0][1] + extents.height + 10 + shape->stroke_width;
     geo_from_positions(shape->geo, 2, poses);
+    /*! \todo Support ratation for shape_text. */
 }