Browse Source

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 năm trước cách đây
mục cha
commit
1790cf1002
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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
 	/* 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
 	 *   future when the two are used more widely they can be printed
 	 *   along with the standard set. */
 	 *   along with the standard set. */
-	if (units && vdatum)
+	if (units || vdatum)
 	    compose_line(out, "  Data Units:   %-20.20s Vertical datum: %s",
 	    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);
 	    compose_line(out, "  Rows:         %d", cellhd.rows);