Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated for more IGeneratorParameter changes in BasicAtomGenerator
  • Loading branch information
egonw committed May 20, 2012
1 parent 78af5a8 commit fed9ee3
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -49,7 +49,7 @@ public IRenderingElement generate(
|| invisibleHydrogen(atom, model)
|| (invisibleCarbon(atom, ac, model) && !model.getDrawNumbers())) {
return null;
} else if (model.getIsCompact()) {
} else if (model.getRenderingParameter(CompactAtom.class).getValue()) {
return this.generateCompactElement(atom, model);
} else {
String text;
Expand All @@ -69,7 +69,8 @@ public IRenderingElement generate(
}

public boolean hideAtomSymbol(IAtom atom, RendererModel model) {
return atom.getSymbol().equals("C") && !model.getKekuleStructure();
return atom.getSymbol().equals("C") &&
!model.getRenderingParameter(KekuleStructure.class).getValue();
}

public void decorate(TextGroupElement textGroup,
Expand Down

0 comments on commit fed9ee3

Please sign in to comment.