Revision: 18597
          http://sourceforge.net/p/jmol/code/18597
Author:   hansonr
Date:     2013-08-19 23:07:47 +0000 (Mon, 19 Aug 2013)
Log Message:
-----------
minor labeltokens error when typing into the console.

Modified Paths:
--------------
    branches/v13_2/Jmol/src/org/jmol/modelset/LabelToken.java

Modified: branches/v13_2/Jmol/src/org/jmol/modelset/LabelToken.java
===================================================================
--- branches/v13_2/Jmol/src/org/jmol/modelset/LabelToken.java   2013-08-19 
21:13:46 UTC (rev 18596)
+++ branches/v13_2/Jmol/src/org/jmol/modelset/LabelToken.java   2013-08-19 
23:07:47 UTC (rev 18597)
@@ -343,6 +343,8 @@
   private static int setToken(Viewer viewer, String strFormat, LabelToken lt,
                               int cch, int chAtom, Map<String, Object> 
htValues) {
     int ich = lt.pt + 1;
+    if (ich >= cch)
+      return ich;
     char ch;
     if (strFormat.charAt(ich) == '-') {
       lt.alignLeft = true;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-commits mailing list
Jmol-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-commits

Reply via email to