Skip to content
Permalink
Browse files

Updated for API changes in CDK 1.3.6 (renderextra).

  • Loading branch information...
egonw committed Sep 23, 2010
1 parent 4f0ac1d commit 640e26a4600a1d5225f1f0b4f31136d7af17dd24
@@ -48,7 +48,7 @@ public IRenderingElement generateElements(
atom.getPoint2d().y,
atom.getSymbol(),
atom.getFormalCharge(),
atom.getHydrogenCount(),
atom.getImplicitHydrogenCount(),
alignment,
atom.getMassNumber(),
super.getAtomColor(atom));
@@ -112,8 +112,8 @@ public void decorate(TextGroupElement textGroup,
}

if (showImplicitHydrogens.getValue()) {
if(atom.getHydrogenCount()!=null){
int nH = atom.getHydrogenCount();
if(atom.getImplicitHydrogenCount()!=null){
int nH = atom.getImplicitHydrogenCount();
if (nH > 0) {
Position position = getNextPosition(unused);
if (nH == 1) {

0 comments on commit 640e26a

Please sign in to comment.
You can’t perform that action at this time.