[GRASS-SVN] r72990 - grass/trunk/misc/m.nviz.image
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jul 14 18:00:44 PDT 2018
Author: hcho
Date: 2018-07-14 18:00:43 -0700 (Sat, 14 Jul 2018)
New Revision: 72990
Modified:
grass/trunk/misc/m.nviz.image/main.c
Log:
m.nviz.image: Remove overwrite variable
Modified: grass/trunk/misc/m.nviz.image/main.c
===================================================================
--- grass/trunk/misc/m.nviz.image/main.c 2018-07-15 00:59:13 UTC (rev 72989)
+++ grass/trunk/misc/m.nviz.image/main.c 2018-07-15 01:00:43 UTC (rev 72990)
@@ -38,7 +38,6 @@
double vp_height, z_exag; /* calculated viewpoint height, z-exag */
int width, height; /* output image size */
char *output_name;
- int overwrite;
nv_data data;
struct render_window *offscreen;
@@ -62,7 +61,6 @@
/* define options, call G_parser() */
parse_command(argc, argv, params);
- overwrite = G_check_overwrite(argc, argv);
/* check parameters consistency */
check_parameters(params);
@@ -73,7 +71,7 @@
params->format->answer);
if (access(output_name, F_OK) == 0) {
- if (overwrite)
+ if (G_check_overwrite(argc, argv))
G_warning(_("File <%s> already exists and will be overwritten"), output_name);
else
G_fatal_error(_("option <%s>: <%s> exists. To overwrite, use the --overwrite flag"), params->output->key, output_name);
More information about the grass-commit
mailing list