|
@@ -41,8 +41,8 @@ int rectify(char *name, char *mapset, char *result, int order)
|
|
|
Rast_set_input_window(&cellhd);
|
|
|
infd = Rast_open_old(name, mapset);
|
|
|
map_type = Rast_get_map_type(infd);
|
|
|
- rast = (void *)G_calloc(Rast_window_cols() + 1, Rast_cell_size(map_type));
|
|
|
- Rast_set_null_value(rast, Rast_window_cols() + 1, map_type);
|
|
|
+ rast = (void *)G_calloc(cellhd.cols + 1, Rast_cell_size(map_type));
|
|
|
+ Rast_set_null_value(rast, cellhd.cols + 1, map_type);
|
|
|
|
|
|
win = target_window;
|
|
|
|