[HepData-svn] r1832 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Nov 11 11:10:56 GMT 2014


Author: whalley
Date: Tue Nov 11 11:10:56 2014
New Revision: 1832

Log:
fixing author date in SavePlot

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/SavePlot.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/SavePlot.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/SavePlot.java	Tue Nov 11 10:57:16 2014	(r1831)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/SavePlot.java	Tue Nov 11 11:10:56 2014	(r1832)
@@ -240,7 +240,7 @@
           if(reference.getDate() != null) { _refdate = reference.getDate(); }
        } 
        int _lref = _refdate.length();
-       _firstauthor = _firstauthor + " " + _refdate.substring(_lref-2,_lref);
+       if(_lref >= 2) { _firstauthor = _firstauthor + " " + _refdate.substring(_lref-2,_lref); }
        return _firstauthor;
    }
    public String getFirstExperimentName(){


More information about the HepData-svn mailing list