Skip to content

Commit

Permalink
Taking advantage of new has2DCoordinates behvaiour
Browse files Browse the repository at this point in the history
Change-Id: Ic364aadbecff93e9085a9dc7cb82b1be4a1288a1
Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
johnmay authored and egonw committed Jul 21, 2012
1 parent 19be6ca commit 32fda31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/org/openscience/cdk/layout/AtomPlacer.java
Expand Up @@ -372,7 +372,7 @@ public void placeLinearChain(IAtomContainer atomContainer, Vector2d initialBondV
nextAtom.setPoint2d(atomPoint);
nextAtom.setFlag(CDKConstants.ISPLACED, true);
boolean trans=false;
if(GeometryTools.has2DCoordinatesNew(atomContainer)==2){
if(GeometryTools.has2DCoordinates(atomContainer)){
try{
if(f>2 && BondTools.isValidDoubleBondConfiguration(withh,withh.getBond(withh.getAtom(f-2),withh.getAtom(f-1)))){
trans=BondTools.isCisTrans(withh.getAtom(f-3),withh.getAtom(f-2),withh.getAtom(f-1),withh.getAtom(f-0),withh);
Expand Down

0 comments on commit 32fda31

Please sign in to comment.