# HG changeset patch # User Thinker K.F. Li # Date 1284265209 -28800 # Node ID 4badbfa8f3867a30959e47ecfcef95f60c44ae99 # Parent dfa8b69e44237ce7fafa486871171562433ade64 Change order of statement to fix segmentation fault diff -r dfa8b69e4423 -r 4badbfa8f386 src/redraw_man.c --- 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))