Revision: 21660
          http://sourceforge.net/p/jmol/code/21660
Author:   hansonr
Date:     2017-07-14 00:01:41 +0000 (Fri, 14 Jul 2017)
Log Message:
-----------
casting issue with _M.molData

Modified Paths:
--------------
    trunk/Jmol/src/org/jmol/script/SV.java

Modified: trunk/Jmol/src/org/jmol/script/SV.java
===================================================================
--- trunk/Jmol/src/org/jmol/script/SV.java      2017-07-14 00:01:09 UTC (rev 
21659)
+++ trunk/Jmol/src/org/jmol/script/SV.java      2017-07-14 00:01:41 UTC (rev 
21660)
@@ -757,6 +757,7 @@
     }
   }
   
+  @SuppressWarnings("cast")
   private static void sValueAddKeys(SB sb, String path, Map<String, SV> ht, 
String tabs, boolean isEscaped, boolean addValues, int maxLevels, boolean 
skipEmpty) {
     if (maxLevels < 0)
       return;
@@ -792,6 +793,8 @@
       String key = keys[i];
       sb.append(PT.esc(key)).append("  :");
       SB sb2 = new SB();
+      if (!(ht.get(key) instanceof SV))
+        ht.put(key, SV.getVariable(ht.get(key)));
       SV v = ht.get(key);
       isEscaped = isRawType(v.tok);
       sValueArray(sb2, v, path, tabs, isEscaped, false, addValues, maxLevels, 
skipEmpty);

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jmol-commits mailing list
Jmol-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-commits

Reply via email to