changeset 811:5aca6024b147

subtree of root coord can not be skept
author Thinker K.F. Li <thinker@codemud.net>
date Thu, 02 Sep 2010 11:00:30 +0800
parents 84853c8559cf
children 7a312cd3e26f
files src/redraw_man.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/redraw_man.c	Thu Sep 02 10:59:02 2010 +0800
+++ b/src/redraw_man.c	Thu Sep 02 11:00:30 2010 +0800
@@ -1644,7 +1644,7 @@
     
     /* Add all marked coords into redraw_man_t::zeroing_coords list */
     FOR_COORDS_PREORDER(rdman->root_coord, coord) {
-	if(!coord_is_cached(coord))
+	if(!coord_is_cached(coord) || coord_is_root(coord))
 	    continue;		/* skip coords that is not cached */
 	
 	if(!coord_get_flags(coord, COF_TEMP_MARK)) {