|
54 | 54 | #define G_read_fp_range Rast_read_fp_range
|
55 | 55 | #define G_window_cols Rast_window_cols
|
56 | 56 | #define G_window_rows Rast_window_rows
|
| 57 | +#define G_suppress_masking Rast_suppress_masking |
57 | 58 | #endif
|
58 | 59 |
|
59 | 60 | int main( int argc, char **argv )
|
@@ -114,7 +115,6 @@ int main( int argc, char **argv )
|
114 | 115 | if ( G_parser( argc, argv ) )
|
115 | 116 | exit( EXIT_FAILURE );
|
116 | 117 |
|
117 |
| - |
118 | 118 | if ( strcmp( "proj", info_opt->answer ) == 0 )
|
119 | 119 | {
|
120 | 120 | G_get_window( &window );
|
@@ -211,6 +211,7 @@ int main( int argc, char **argv )
|
211 | 211 | char buff[101];
|
212 | 212 | G_get_cellhd( rast_opt->answer, "", &window );
|
213 | 213 | G_set_window( &window );
|
| 214 | + G_suppress_masking(); // must be after G_set_window() |
214 | 215 | fd = G_open_cell_old( rast_opt->answer, "" );
|
215 | 216 | // wait for coords from stdin
|
216 | 217 | while ( fgets( buff, 100, stdin ) != 0 )
|
@@ -323,6 +324,7 @@ int main( int argc, char **argv )
|
323 | 324 | window.cols = ( int ) atoi( cols_opt->answer );
|
324 | 325 |
|
325 | 326 | G_set_window( &window );
|
| 327 | + G_suppress_masking(); // must be after G_set_window() |
326 | 328 | fd = G_open_cell_old( rast_opt->answer, "" );
|
327 | 329 |
|
328 | 330 | ncols = G_window_cols();
|
|
0 commit comments