From: <ha...@us...> - 2013-08-22 18:36:23
|
Revision: 18621 http://sourceforge.net/p/jmol/code/18621 Author: hansonr Date: 2013-08-22 18:36:16 +0000 (Thu, 22 Aug 2013) Log Message: ----------- MO color red blue fix Modified Paths: -------------- trunk/Jmol/src/org/jmol/scriptext/ScriptExt.java Modified: trunk/Jmol/src/org/jmol/scriptext/ScriptExt.java =================================================================== --- trunk/Jmol/src/org/jmol/scriptext/ScriptExt.java 2013-08-22 15:12:02 UTC (rev 18620) +++ trunk/Jmol/src/org/jmol/scriptext/ScriptExt.java 2013-08-22 18:36:16 UTC (rev 18621) @@ -3875,7 +3875,8 @@ if (eval.isColorParam(eval.iToken + 1)) { int color = eval.getArgbParam(++eval.iToken); setShapeProperty(iShape, "colorRGB", Integer.valueOf(color)); - sb.append(" ").append(Escape.escapeColor(color)); + if (sb != null) + sb.append(" ").append(Escape.escapeColor(color)); } else if (eval.iToken < index) { invArg(); } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |