[GRASS-SVN] r72944 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 3 01:15:08 PDT 2018


Author: mmetz
Date: 2018-07-03 01:15:08 -0700 (Tue, 03 Jul 2018)
New Revision: 72944

Modified:
   grass/trunk/lib/vector/Vlib/merge_lines.c
Log:
Vlib, Vect_merge_lines(): use correct line type in messages

Modified: grass/trunk/lib/vector/Vlib/merge_lines.c
===================================================================
--- grass/trunk/lib/vector/Vlib/merge_lines.c	2018-07-03 06:40:42 UTC (rev 72943)
+++ grass/trunk/lib/vector/Vlib/merge_lines.c	2018-07-03 08:15:08 UTC (rev 72944)
@@ -237,8 +237,18 @@
 	/* 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;



More information about the grass-commit mailing list