[COMMIT LOGREPORT] service/all/lib/Lire ChartType.pm,1.13,1.14

Francis J. Lacoste flacoste at users.sourceforge.net
Thu Sep 15 17:01:23 CEST 2005


Update of /cvsroot/logreport/service/all/lib/Lire
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25164/all/lib/Lire

Modified Files:
	ChartType.pm 
Log Message:
Encode NaN to NA for ploticus.


Index: ChartType.pm
===================================================================
RCS file: /cvsroot/logreport/service/all/lib/Lire/ChartType.pm,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- ChartType.pm	8 Oct 2004 18:36:43 -0000	1.13
+++ ChartType.pm	15 Sep 2005 15:01:21 -0000	1.14
@@ -237,7 +237,8 @@
 =cut
 
 sub encode_value {
-    return $_[1]{'type'} eq 'name' ? $_[1]{'content'} : $_[1]{'value'};
+    return $_[1]{'type'} eq 'name' ? $_[1]{'content'}
+      : ( $_[1]{'value'} eq 'NaN' ? 'NA' : $_[1]{'value'} );
 }
 
 # keep perl happy

-- 
To UNSUBSCRIBE, email to commit-request at logreport.org with a subject of 
"unsubscribe". Trouble? Send an email with subject "help" to 
commit-request at logreport.org



More information about the Commit mailing list