[GRASS-SVN] r31482 - grass/branches/develbranch_6/display/d.rast.num

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 22 07:22:51 EDT 2008


Author: neteler
Date: 2008-05-22 07:22:51 -0400 (Thu, 22 May 2008)
New Revision: 31482

Modified:
   grass/branches/develbranch_6/display/d.rast.num/description.html
   grass/branches/develbranch_6/display/d.rast.num/number.c
Log:
cosmetics for NULL indication (to fix bad font size) (merge from trunk)

Modified: grass/branches/develbranch_6/display/d.rast.num/description.html
===================================================================
--- grass/branches/develbranch_6/display/d.rast.num/description.html	2008-05-22 11:22:33 UTC (rev 31481)
+++ grass/branches/develbranch_6/display/d.rast.num/description.html	2008-05-22 11:22:51 UTC (rev 31482)
@@ -23,6 +23,7 @@
 small area (i.e., less than 100 rows by 100 columns);
 otherwise, the individual cells being displayed will be small
 and the category value associated with each will be difficult to see.
+No data cells are indicated with "Null".
 
 <H2>SEE ALSO</H2>
 

Modified: grass/branches/develbranch_6/display/d.rast.num/number.c
===================================================================
--- grass/branches/develbranch_6/display/d.rast.num/number.c	2008-05-22 11:22:33 UTC (rev 31481)
+++ grass/branches/develbranch_6/display/d.rast.num/number.c	2008-05-22 11:22:51 UTC (rev 31482)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  ****************************************************************************
  *
  * MODULE:       d.rast.num
@@ -334,12 +332,12 @@
 	  if(!G_is_c_null_value(&cell))
 	    sprintf(no,"%d",(int)number);
 	  else
-	    sprintf(no,"N");
+	    sprintf(no,"Null");
 	}else{
 	  if(!G_is_d_null_value(&dcell))
 	    sprintf(no,"%.*f", prec, number);
 	  else
-	   sprintf(no,"N");
+	   sprintf(no,"Null");
 	}
 	len = strlen(no);
 



More information about the grass-commit mailing list