Sfoglia il codice sorgente

i.segment: small correction of https://trac.osgeo.org/grass/changeset/68468 - 'else' was only linked to one if

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@68473 15284696-431f-4ddb-bdfa-cd5b030d7da7
Moritz Lennert 9 anni fa
parent
commit
9035f911f0
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      imagery/i.segment/parse_args.c

+ 2 - 2
imagery/i.segment/parse_args.c

@@ -155,9 +155,9 @@ int parse_args(int argc, char *argv[], struct globals *globals)
     /* segmentation methods:  1 = region growing */
     if (strcmp(method->answer, "region_growing") == 0)
 	globals->method = region_growing;
-    if (strcmp(method->answer, "mean_shift") == 0)
+    else if (strcmp(method->answer, "mean_shift") == 0)
 	globals->method = mean_shift;
-    if (strcmp(method->answer, "watershed") == 0)
+    else if (strcmp(method->answer, "watershed") == 0)
 	globals->method = watershed;
     else
 	G_fatal_error(_("Unable to assign segmentation method"));