瀏覽代碼

v.category: print message about added centroids only when at least one has been added to the map

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51094 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父節點
當前提交
4a75848b53
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      vector/v.category/main.c

+ 2 - 1
vector/v.category/main.c

@@ -325,7 +325,8 @@ int main(int argc, char *argv[])
 		Vect_write_line(&Out, GV_CENTROID, Points, Cats);
 		new_centr++;
 	    }
-	    G_message(_("%d new centroids placed in output map"), new_centr);
+	    if (new_centr > 0) 
+		G_message(_("%d new centroids placed in output map"), new_centr);
 	}
 	break;