瀏覽代碼

ogsflib: call G_percent() after loop

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35895 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 年之前
父節點
當前提交
fc065bcd0e
共有 1 個文件被更改,包括 11 次插入5 次删除
  1. 11 5
      lib/ogsf/Gs3.c

+ 11 - 5
lib/ogsf/Gs3.c

@@ -155,6 +155,7 @@ int Gs_loadmap_as_float(struct Cell_head *wind, const char *map_name,
 	    /* set nm */
 	}
     }
+    G_percent(1, 1, 1);
 
     G_debug(4, "  has_null=%d", *has_null);
 
@@ -230,7 +231,8 @@ int Gs_loadmap_as_int(struct Cell_head *wind, const char *map_name, int *buff,
 	    /* set nm */
 	}
     }
-
+    G_percent(1, 1, 1);
+    
     G_close_cell(cellfile);
 
     G_free(nullflags);
@@ -408,7 +410,8 @@ int Gs_loadmap_as_short(struct Cell_head *wind, const char *map_name,
 	    ts++;
 	}
     }
-
+    G_percent(1, 1, 1);
+    
     G_close_cell(cellfile);
 
     G_free(tmp_buf);
@@ -524,7 +527,8 @@ int Gs_loadmap_as_char(struct Cell_head *wind, const char *map_name,
 	    tc++;
 	}
     }
-
+    G_percent(1, 1, 1);
+    
     G_close_cell(cellfile);
 
     G_free(tmp_buf);
@@ -721,7 +725,8 @@ void Gs_pack_colors(const char *filename, int *buff, int rows, int cols)
 
 	cur = &(cur[cols]);
     }
-
+    G_percent(1, 1, 1);
+    
     G_free_colors(&colrules);
 
     G_free(r);
@@ -792,7 +797,8 @@ void Gs_pack_colors_float(const char *filename, float *fbuf, int *ibuf,
 	icur = &(icur[cols]);
 	fcur = &(fcur[cols]);
     }
-
+    G_percent(1, 1, 1);
+    
     G_free_colors(&colrules);
 
     G_free(r);