瀏覽代碼

show units and vertical datum if either exist

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40863 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 15 年之前
父節點
當前提交
1790cf1002
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      raster/r.info/main.c

+ 2 - 2
raster/r.info/main.c

@@ -187,9 +187,9 @@ int main(int argc, char **argv)
 	/* For now hide these unless they exist to keep the noise low. In
 	 *   future when the two are used more widely they can be printed
 	 *   along with the standard set. */
-	if (units && vdatum)
+	if (units || vdatum)
 	    compose_line(out, "  Data Units:   %-20.20s Vertical datum: %s",
-			 units, vdatum);
+			 units ? units : "(none)", vdatum ? vdatum : "(none)");
 
 	{
 	    compose_line(out, "  Rows:         %d", cellhd.rows);