Sfoglia il codice sorgente

r.in.poly: fix for https://trac.osgeo.org/grass/ticket/1576

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50834 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 13 anni fa
parent
commit
4bfa9d3bfd
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4 3
      raster/r.in.poly/raster.c

+ 4 - 3
raster/r.in.poly/raster.c

@@ -38,8 +38,8 @@ int begin_rasterization(int nrows, int f)
     if (max_rows <= 0)
 	max_rows = 512;
 
-    G_get_set_window(&region);
-    G_get_set_window(&page);
+    Rast_get_window(&region);
+    Rast_get_window(&page);
 
     pages = (region.rows + max_rows - 1) / max_rows;
 
@@ -139,7 +139,8 @@ int configure_plot(void)
     /* change the region */
     page.north = region.north - at_row * region.ns_res;
     page.south = page.north - nrows * region.ns_res;
-    Rast_set_window(&page);
+    /* Rast_set_[inpu|output]_window not working but G_set_window ??? */
+    G_set_window(&page);
 
     /* configure the plot routines */
     G_setup_plot(-0.5, page.rows - 0.5, -0.5, page.cols - 0.5, move, cont);