Parcourir la source

fixed bug, the group validity check was not needed

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72075 15284696-431f-4ddb-bdfa-cd5b030d7da7
Yann Chemin il y a 7 ans
Parent
commit
670acb5ea1
1 fichiers modifiés avec 0 ajouts et 11 suppressions
  1. 0 11
      imagery/i.ortho.photo/i.ortho.photo/menu.c

+ 0 - 11
imagery/i.ortho.photo/i.ortho.photo/menu.c

@@ -89,17 +89,6 @@ int main(int argc, char **argv)
     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 */