Explorar o código

Vlib, Vect_merge_lines(): use correct line type in messages

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72944 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz %!s(int64=6) %!d(string=hai) anos
pai
achega
cef0067c20
Modificáronse 1 ficheiros con 12 adicións e 2 borrados
  1. 12 2
      lib/vector/Vlib/merge_lines.c

+ 12 - 2
lib/vector/Vlib/merge_lines.c

@@ -237,8 +237,18 @@ int Vect_merge_lines(struct Map_info *Map, int type, int *new_lines,
 	/* nlines = Vect_get_num_lines(Map); */
     }
 
-    G_verbose_message(_("%d boundaries merged"), merged);
-    G_verbose_message(_("%d new boundaries"), newl);
+    if (type == GV_LINE) {
+	G_verbose_message(_("%d lines merged"), merged);
+	G_verbose_message(_("%d new lines"), newl);
+    }
+    else if (type == GV_BOUNDARY) {
+	G_verbose_message(_("%d boundaries merged"), merged);
+	G_verbose_message(_("%d new boundaries"), newl);
+    }
+    else {
+	G_verbose_message(_("%d lines and boundaries merged"), merged);
+	G_verbose_message(_("%d new lines and boundaries"), newl);
+    }
 
     if (new_lines)
 	*new_lines = newl;