[GRASS-SVN] r57072 - grass/trunk/misc/m.nviz.image
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jul 11 23:43:36 PDT 2013
Author: annakrat
Date: 2013-07-11 23:43:31 -0700 (Thu, 11 Jul 2013)
New Revision: 57072
Modified:
grass/trunk/misc/m.nviz.image/args.c
Log:
m.nviz.image: fix parameters check
Modified: grass/trunk/misc/m.nviz.image/args.c
===================================================================
--- grass/trunk/misc/m.nviz.image/args.c 2013-07-11 23:12:32 UTC (rev 57071)
+++ grass/trunk/misc/m.nviz.image/args.c 2013-07-12 06:43:31 UTC (rev 57072)
@@ -1090,11 +1090,11 @@
nvpoints_pos = opt_get_num_answers(params->vpoint_pos);
nvpoints_layer = opt_get_num_answers(params->vpoint_layer);
- if (nvpoints * 3 != nvpoints_pos)
+ if (nvpoints && (nvpoints * 3 != nvpoints_pos))
G_fatal_error(_("Inconsistent number of attributes (<%s> %d: <%s> %d)"),
params->vpoints->key, nvpoints, params->vpoint_pos->key, nvpoints_pos);
- if (nvpoints != nvpoints_layer)
+ if (nvpoints && (nvpoints != nvpoints_layer))
G_fatal_error(_("Inconsistent number of attributes (<%s> %d: <%s> %d)"),
params->vpoints->key, nvpoints, params->vpoint_layer->key, nvpoints_layer);
More information about the grass-commit
mailing list