diff src/redraw_man.c @ 815:4badbfa8f386

Change order of statement to fix segmentation fault
author Thinker K.F. Li <thinker@codemud.net>
date Sun, 12 Sep 2010 12:20:09 +0800
parents 5aca6024b147
children 0e56a1ca19b2
line wrap: on
line diff
--- a/src/redraw_man.c	Fri Sep 03 12:32:48 2010 +0800
+++ b/src/redraw_man.c	Sun Sep 12 12:20:09 2010 +0800
@@ -1876,11 +1876,12 @@
     n_dpca_coords = rdman->dirty_pcache_area_coords.num;
     dpca_coords = rdman->dirty_pcache_area_coords.ds;
     for(i = 0; i < n_dpca_coords; i++) {
+	coord = dpca_coords[i];
+	
 	if(coord_get_flags(coord, COF_TEMP_MARK))
 	    continue;
 	coord_set_flags(coord, COF_TEMP_MARK);
 
-	coord = dpca_coords[i];
 	pcached_coord = coord_get_cached(coord_get_parent(coord));
 	
 	if(coord_is_root(coord) || IS_CACHE_REDRAW_ALL(pcached_coord))