[GRASS-SVN] r72075 - grass/trunk/imagery/i.ortho.photo/i.ortho.photo

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 13 00:11:05 PST 2018


Author: ychemin
Date: 2018-01-13 00:11:05 -0800 (Sat, 13 Jan 2018)
New Revision: 72075

Modified:
   grass/trunk/imagery/i.ortho.photo/i.ortho.photo/menu.c
Log:
fixed bug, the group validity check was not needed

Modified: grass/trunk/imagery/i.ortho.photo/i.ortho.photo/menu.c
===================================================================
--- grass/trunk/imagery/i.ortho.photo/i.ortho.photo/menu.c	2018-01-12 11:14:37 UTC (rev 72074)
+++ grass/trunk/imagery/i.ortho.photo/i.ortho.photo/menu.c	2018-01-13 08:11:05 UTC (rev 72075)
@@ -89,17 +89,6 @@
     if ((p = strchr(group.name, '@')))
 	*p = 0;
 
-    /* get and check the group reference files */
-    /* Skip if you are creating the group right now */
-    if (strcmp(moduletorun, "i.group") != 0){
-    	if (!I_get_group_ref(group.name, &group.group_ref))
-		G_fatal_error(_("Pre-selected group <%s> not found"), group.name);
-	    I_get_group_ref(group.name, &group.group_ref);
-
-	    if (group.group_ref.nfiles <= 0)
-		G_fatal_error(_("Group [%s] contains no files"), group.name);
-    }
-
     I_put_group(group.name);
     /*-----------------------------*/
     /* END of group validity check */



More information about the grass-commit mailing list