[HepData-svn] r1540 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Fri May 4 15:38:54 BST 2012


Author: whalley
Date: Fri May  4 15:38:53 2012
New Revision: 1540

Log:
fix to way 0.0 id displayed in x axis

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java	Wed May  2 16:09:25 2012	(r1539)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java	Fri May  4 15:38:53 2012	(r1540)
@@ -423,7 +423,7 @@
                                         writer.writeRaw(" (bin: ");
                                         writer.writeRaw(f_low + " – " + f_high);
                                         writer.writeRaw(")");
-                                    } else if (f != null && Math.abs(width/f) < 1E-6) {
+                                    } else if (f==0.0 && haswidth==false || (f != null && Math.abs(width/f) < 1E-6)) {
                                         writer.write(f_val);
                                     } else {
                                         writer.writeRaw(f_low + " – " + f_high);


More information about the HepData-svn mailing list