From: <ha...@us...> - 2010-08-19 06:47:06
|
Revision: 14052 http://jmol.svn.sourceforge.net/jmol/?rev=14052&view=rev Author: hansonr Date: 2010-08-19 06:46:59 +0000 (Thu, 19 Aug 2010) Log Message: ----------- Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/ColorManager.java Modified: trunk/Jmol/src/org/jmol/viewer/ColorManager.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/ColorManager.java 2010-08-19 06:33:10 UTC (rev 14051) +++ trunk/Jmol/src/org/jmol/viewer/ColorManager.java 2010-08-19 06:46:59 UTC (rev 14052) @@ -333,12 +333,13 @@ void setPropertyColorScheme(String colorScheme, boolean isTranslucent, boolean isOverloaded) { - if (colorScheme.length() == 0) - colorScheme = "roygb"; + boolean isReset = (colorScheme.length() == 0); + colorScheme = "="; // reset roygb float[] range = getPropertyColorRange(); propertyColorEncoder.currentPalette = propertyColorEncoder.getColorScheme( colorScheme, true, isOverloaded); - setPropertyColorRange(range[0], range[1]); + if (!isReset) + setPropertyColorRange(range[0], range[1]); propertyColorEncoder.isTranslucent = isTranslucent; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |