From: <ha...@us...> - 2007-03-08 19:06:32
|
Revision: 7058 http://svn.sourceforge.net/jmol/?rev=7058&view=rev Author: hansonr Date: 2007-03-08 11:06:26 -0800 (Thu, 08 Mar 2007) Log Message: ----------- 11.1.20 and frank as well Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/StateManager.java Modified: trunk/Jmol/src/org/jmol/viewer/StateManager.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/StateManager.java 2007-03-08 18:54:58 UTC (rev 7057) +++ trunk/Jmol/src/org/jmol/viewer/StateManager.java 2007-03-08 19:06:26 UTC (rev 7058) @@ -60,7 +60,7 @@ } static String getObjectNameFromId(int objId) { - if (objId < 0 || objId > 5) + if (objId < 0 || objId >= OBJ_MAX) return null; return objectNameList.substring(objId * 11,objId*11 + 11).trim(); } @@ -597,7 +597,7 @@ ";refreshing;defaults;backgroundmodel;stereo;" + ";backgroundcolor;axescolor;axis1color;axis2color;axis3color;boundboxcolor;unitcellcolor;" + ";ambientpercent;diffusepercent;specular;specularexponent;specularpower;specularpercent;" - + ";debugscript;showfrank;showaxes;showunitcell;showboundbox;" + + ";debugscript;showfrank;showaxes;showaxis1;showaxis2;showaxis3;showunitcell;showboundbox;" + ";slabEnabled;zoomEnabled;axeswindow;axesunitcell;axesmolecular;windowcentered;" + ";cameradepth;navigationmode;rotationradius;" + ";zerobasedxyzrasmol;axesorientationrasmol;" @@ -788,6 +788,11 @@ void registerAllValues() { htParameterValues = new Hashtable(); htPropertyFlags = new Hashtable(); + setParameterValue("showaxes",false); + setParameterValue("showunitcell",false); + setParameterValue("showboundbox",false); + setParameterValue("showfrank",false); + setParameterValue("allowEmbeddedScripts",allowEmbeddedScripts); setParameterValue("allowRotateSelected",allowRotateSelected); setParameterValue("ambientPercent",ambientPercent); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |