From: <sh...@us...> - 2009-02-27 13:13:47
|
Revision: 14275 http://cdk.svn.sourceforge.net/cdk/?rev=14275&view=rev Author: shk3 Date: 2009-02-27 13:13:35 +0000 (Fri, 27 Feb 2009) Log Message: ----------- the hover-over-and-enter-element allowed setting of nonsense smybols due to a stupid error of mine Modified Paths: -------------- jchempaint/trunk/src/main/org/openscience/jchempaint/JChemPaintPanel.java Modified: jchempaint/trunk/src/main/org/openscience/jchempaint/JChemPaintPanel.java =================================================================== --- jchempaint/trunk/src/main/org/openscience/jchempaint/JChemPaintPanel.java 2009-02-27 13:06:59 UTC (rev 14274) +++ jchempaint/trunk/src/main/org/openscience/jchempaint/JChemPaintPanel.java 2009-02-27 13:13:35 UTC (rev 14275) @@ -605,7 +605,7 @@ x=Character.toUpperCase(x); IsotopeFactory ifa; ifa = IsotopeFactory.getInstance(closestAtom.getBuilder()); - IIsotope iso=ifa.getMajorIsotope(x); + IIsotope iso=ifa.getMajorIsotope(Character.toString(x)); if(iso!=null){ renderPanel.getHub().setSymbol(closestAtom, Character.toString(x)); // configure the atom, so that the atomic number matches the symbol This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |