diff src/X_main.c @ 33:d82749f77108

Fix bug of demo and remove *_fill() and *_stroke(). - logical error in X_main.c.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 06 Aug 2008 00:40:04 +0800
parents 69c8e264890d
children 581a03196093
line wrap: on
line diff
--- a/src/X_main.c	Tue Aug 05 18:28:50 2008 +0800
+++ b/src/X_main.c	Wed Aug 06 00:40:04 2008 +0800
@@ -16,7 +16,7 @@
 void hint_shape(redraw_man_t *rdman, shape_t *shape) {
     static shape_t *last_shape = NULL;
     if(last_shape != shape) {
-	if(last_shape != NULL && last_shape != NULL) {
+	if(last_shape != NULL && last_shape->stroke != NULL) {
 	    last_shape->stroke_width -= 2;
 	    rdman_shape_changed(rdman, last_shape);
 	}